Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notepad++ right-click to open file in a new window

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.

like image 406
CupOfTea696 Avatar asked Feb 21 '12 14:02

CupOfTea696


People also ask

How do I make Notepad open each file in a new window?

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."

Is clicked to open a new file in Notepad?

Double-click your document. This will open your text file in Notepad!


1 Answers

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)

like image 84
Paul Sweatte Avatar answered Nov 09 '22 05:11

Paul Sweatte