How to make Notepad++ open each file in new window?
create a totally empty file called 'asNotepad.xml' and put it in the Notepad++ directory at the same level as the notepad++.exe file
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.
"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.
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.