How can I configure Notepad++ to open a file in a new window when I right-click it and select Edit with Notepad++
? I already know I have to launch the program with the -multiInst
switch, I just don't know how to add that to the registry mapping for the right-click.
Right-click the tab you are working with, and click "Move to New Instance", or to open the file again in a new window, click "Open in New Instance."
Double-click your document. This will open your text file in Notepad!
If you want to fix the right-click behavior of "Edit with Notepad++", first go to:
HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\Notepad++
If the default value is:
{00F3C2EC-A6EE-11DE-A03A-EF8F55D89593}
then go to:
HKEY_CLASSES_ROOT\CLSID\{00F3C2EC-A6EE-11DE-A03A-EF8F55D89593}\Settings
Among the items should be Custom REG_SZ
and nothing after it. Change the value to -nosession -multiInst
.
It should now read Custom REG_SZ -nosession -multiInst
. If you already have custom arguments defined, then just add a space and append -nosession -multiInst
to the list.
References
Context Menu - Notepad++ Wiki
Multiple Instances - Notepad++ Wiki
Extending Shortcut Menus (Windows)
Shell.ShellExecute method (Windows)
Default Programs (Windows)
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