How to set Wordpad's default plain-text font? - windows-7

I much prefer Wordpad to Notepad in Windows 7 for quickly checking out source files, namely because Notepad doesn't display most correctly if the file was written in Unix.
However it saddens me that I can't chose the plain-text mode's default font.
Is there a way to change it? I'm guessing registry here, if at all.

Open a new document, set the default font and size, and save the file as
"wordpad.wri". Close wordpad. Right click on the saved file and select
Properties. On the general tab check read-only, apply your changes and
click OK.
Whenever you want to launch wordpad, do so by double clicking the saved
wordpad.wri.
[src: Tom Porterfield ]

You can change also the Icon of the shortcut, putting the icon of the Wordpad program, and to change also the name of the shortcut, so it will look as it's really the Workpad program.

Related

Where is the windows terminal settings location?

I edited the settings file and there must have been a typo and now the app crashes on startup.
Online the documentation says the settings lives in $env:LocalAppData\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json
I can't figure out what that path means since it doesn't exist on the computer.
I re-installed the app to fix the problem then made sure to see what the actual path is.
It's located in : C:\Users\{USERNAME}\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState
In the current version (1.7.1033.0), the application can open the JSON settings file for you via a button. Open the Settings tab, and the bottom left corner will have a button named "Open JSON file". Clicking that button will open a prompt asking with what application to open the file. That text editor can then tell you where the file is located.
If you open the terminal settings, it will open a text editor with the settings.json file. If your default editor is VS Code it will show you the path below the tabs on the top of the screen.
I'm unsure what other editors show you the path, but if it is crucial you can change your default text editor to Code.
There is still the option to open the JSON file through settings. In version 1.15.2875.0 you can still find the "Open JSON file" at the bottom left corner
Screenshot with highlights
This hint was given by a comment by user1340531:
Mine is at C:\Users\{username}\AppData\Local\Microsoft\Windows Terminal\settings.json
(or more generically: %userprofile%\AppData\Local\Microsoft\Windows Terminal\settings.json)
If it's not there, you should consider OP's answer or vyps comment which lets you find out one of these generic paths (they are equivalent):
%userprofile%\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState
%LocalAppData%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState
$env:LocalAppData\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState
If you don't know what these paths mean, I'd recommend playing around with "Windows Run" (Win+R) and the explorer address bar.

Text disappears when changing the font

When I change the font in WinDbg, the text disappears. I have to restart WinDbg to see text again, but then, the font setting is gone.
Before:
After changing the Font to Lucida Console 14:
Version at the time of writing: WinDbg 10.0.10586.567
There seem to be 2 questions:
How can I get the color back without restarting
How do I save the font in the workspace
Get the color back
This only happens in customized workspaces like yours. The text is not really gone but its color seems to be reset to black. The text is still there and can be selected:
To partially fix this, you can go to the View/Options menu, select the text color entry (no need to change) and click Ok.
Doing so might be needed twice:
when the focus is in the output window
when the focus is in the command prompt
Doing that will not affect the readability of existing text but the output of any new commands will be displayed in green color again.
Store the font in the Workspace
WinDbg knows several workspaces and when you chose "Save Workspace" it probably saved into a very specific one (specific to an executable or a crash dump).
To have the font settings always, it needs to be saved in the "base" Workspace. To do that:
open WinDbg without running a program and without opening a dump file
change the font
set the color again
save the Workspace (File / Save Workspace)
In some versions of WinDbg, e.g. 6.3.9600, this does not seem to be enough. In that case,
open WinDbg without running a program and without opening a dump file
change the font
set the color again
set the window to restored size (i.e. not maximized)
move the window to a different position
save the Workspace (File / Save Workspace)
maximize the window (if you want it maximized)
save the Workspace again (if you want it maximized)

Turn off "ask to save" for Windows Notepad

Is there a way to disable the "Do you want to save changes" dialog for Notepad on Windows 10?
I mainly use it as a temporary editor (to monitor the clipboard or to write text for dynamically managed web content, lest I accidentally cancel an action, etc.)
And IF I want to save something, I'm gonna save it.
I really don't need that feature with Notepad ("Serious" work I do in Notepad++)
If not, I'll just make my own Notepad in Visual Studio, where I'll include the option of making this choice - but it would be nice if I didn't have to :)
Nope. Get busy with Visual Studio.
No settings in the application and looking at the registry reveals only settings for word wrap, visibility of status bar, and window position.

How do i open a file via terminal with a specific editor?

How do i set a default application to open a file with my preferred text editor? I am currently trying open file.rb. It opens text wrangler, but I want to open with another. How do i do this?
Go to finder, right click on your file.rb file and select Get Info.
In the Info Window you'll see a section that says Open with, expand that section. There you can change the default application to open that particular file. There's also a button labeled Change All... This button allows you to use the specified application for all similar filetypes (*.rb).
You want to use the name of the editor you want to open with, i.e. gedit file.rb, or vim file.rb. You can probably also change your default editor associated with that file type, depending on your OS, etc.

Can I change the icon of a VBS with out making it a shortcut

So instead of having the lovely script icon for a vbs, is there away to change that to make it look like something else? I know I can change it with a shortcut icon but then I'll have to have both the shortcut and the vbs. I tried resource hacker but that will only let me do .exes .dlls ect and not .vbs. Does anyone know a way?
This would change the icon for all .vbs files, not individual .vbs files.
Download FileTypesMan - http://www.nirsoft.net/utils/file_types_manager.html
Right-click on Edit Selected File Type
From there, you can edit the Default Icon. By default, it references the 2nd icon in wscript.exe. Change it to whatever you want.
Try saving it with .vbq extension.
Thanks.

Resources