Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There is -multiInst launch parameter that lets you open more than one instance of Notepad++, but how to make it launch a new window every time when I click on "Edit with Notepad++" or "Open With..." shell context menu?

share|improve this question
up vote 24 down vote accepted

create a totally empty file called 'asNotepad.xml' and put it in the Notepad++ directory at the same level as the notepad++.exe file

share|improve this answer
Thanks, that worked. Why not just put it as an option... – serg Oct 22 '10 at 18:25
no idea as I am not the developer just a pro at Googling, perhaps there was some legal issue with having it act like Notepad? That seems unlikely though.. – ioSamurai Oct 22 '10 at 18:42
most open source developers add features based on what the user base requests or what they feel is most important for usability and stability. If you want it as an option, request it from the developers. – MaQleod Oct 22 '10 at 18:58
This is still not quite what I want. This totally obliterates the tabs. I still want documents to open in tabs when I go to file->open, I just want a new window when I open it from the explorer. – Matthew Scouten Feb 8 '11 at 18:37
@MatthewScouten: would… help? – VonC Oct 13 '11 at 6:22

I was just looking for the same thing.

You can change the shell's file type settings to make this work. My computer still has XP on it, so here's how to configure XP.

Windows Vista/7 will be different but similar.

  • Open Explorer Menu Tools | Folder Options...
  • Tab File Types
  • Scroll and select TXT Hit Advanced... (If missing, hit Restore and the button turns into Advanced.)
  • (Edit File Type Dialog)
  • Select action 'open', hit Edit...
  • "Application used to perform action" is the command line that is used to open the file.

Screen Shot

"C:\Program Files\Notepad++\notepad++.exe" "%1" -nosession -multiInst

I added the switches -nosession and -multiInst so that when I open up Notepad++ from the start menu, it re-opens my session files. But opening a file from explorer opens in a new window, and doesn't get added to my session.

share|improve this answer

Another way to get multiple windows is to simply drag a tab onto the desktop and a new instance of NP++ will start, with that tab in it (you can drag as many as you want).

Clicking on a file associated with NP++ will open that file in the last active NP++ window.

Also there is a tab context menu, right click a tab and you will see 'Move to new instance' and 'Open in new instance'. Both start a new instance of NP++.

'Move...' closes the tab in the current instance and opens file, that was in that tab, in a tab in the new instance (i.e. a 'move'). 'Open..' starts a new instance but keeps the file open in both instances.

share|improve this answer
Excellent, that saved me a lot of troubles :) – FarhadA Jun 11 '13 at 10:33

recently I got same problem.

As I think the easiest way is to write simple .bat file something like this:


SET var1="C:\Users\churaev.s\Desktop\a01_strt.bat"

SET var2="C:\Users\churaev.s\Desktop\b02_code.mat"

SET var3="C:\Users\churaev.s\Desktop\c03_data.txt"


START "" "C:\Program Files (x86)\Notepad++\notepad++.exe" %var1%

START "" "C:\Program Files (x86)\Notepad++\notepad++.exe" %var2%

START "" "C:\Program Files (x86)\Notepad++\notepad++.exe" %var3%


share|improve this answer

I like to reuse a Notepad++ window only explicitly by dragging a file over one of the existing Notepad++ windows. Otherwise, every time I click on the Notepad++ icon or open a file, I want a new window.

Here is how I do this: I've added -multiInst to the Notepad++ shortcut, so a new window pops up every time I open Notepad++.

Then I've also added -multiInst to the (Default) value under the following regkey:

HKEY_CLASSES_ROOT\Applications\notepad++.exe\shell\open\command\ that every time I open a file, it opens in a new window.

share|improve this answer

Noticed in v6.6.9 that it's possible to set shell options when installing the extension:

 regsvr32 /i nppshell_06.dll

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.