How to make Notepad++ open each file in new window?
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?
Solution 1:
create a totally empty file called 'asNotepad.xml' and put it in the Notepad++ directory at the same level as the notepad++.exe file
Solution 2:
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.
Solution 3:
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.
Solution 4:
Settings -> Preferences -> Multi-instance
Right click on filename in tab, choose “Move to other view” for split screen.