Sometimes I browse a repository and want to look at some files there, without checking them out (let's say I'm looking for a particular file). I've got three choices
I'd like to use Notepad++ as the default editor. Or it can be the "Edit" entry on the context menu that opens it, but not the full and lengthy "Open with..." dialog. Can I do that? I haven't yet found such a setting, but maybe there's some hidden option or something.
Right-click on the app icon and select Properties. Under the General tab, you'll see an 'Open With:' option. Click on the change button next to it. From the list of apps, select Notepad++ and click Ok to save the settings.
Right click filetype in question (e.g. txt), and do Open With > Other Application... ...Now click button Set as default .
Like Mand Beckett said, and this is the full registry path:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\text\shell\edit\command
Change (Default) value in this key. Remember to leave %1 there.
The problem with solution above is that it will only handle files that are perceived as text (have value PerceivedType=text in registry). Most text files are already perceived as such in the registry, but you can't open, for instance, a .lib file in this manner. To be able to open really all files from repository browser with Notepad++ edit (Default) value in the following key (add the key if not there):
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\edit\command
NOTE: In registry editor new key will have (Default) value of type REG_SZ, not REG_EXPAND_SZ. If you want REG_EXPAND_SZ you must create a key with .reg file.
Another option is to set all relevant file types to open from Notepad++ by default instead from Visual Studio. Start Notepad++ as administrator and in Settings > Preferences > File Association just add those file associations that you use.
You need to change the Windows registry options to do that. You can change the default open
program from within the Tortoise settings, but it is the edit
function you want. Look for
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations
in regedit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With