25
7
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?
25
7
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?
36
create a totally empty file called 'asNotepad.xml' and put it in the Notepad++ directory at the same level as the notepad++.exe file
7
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.
"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.
6
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.
Excellent, that saved me a lot of troubles :) – FarhadA – 2013-06-11T10:33:27.387
1
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\
...so that every time I open a file, it opens in a new window.
1
Noticed in v6.6.9 that it's possible to set shell options when installing the extension:
regsvr32 /i nppshell_06.dll
1
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%
...
0
Settings -> Preferences -> Multi-instance
Right click on filename in tab, choose “Move to other view” for split screen.
Do you know the difference between the settings "Always open in mulit-instance mode" and "Open session in a new instance"? Official help file not really clear and real-world behavior not any clearer. – JoelAZ – 2018-02-21T20:18:06.540
0
Rather then modifying existing functionality I created a new right click command 'Edit with Notepadd++ in new window' for any type of file.
Create a new key as per below export, or copy the context into a blank.reg
and double click it.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Notepad++]
@="Edit with Notepad++ in new window"
[HKEY_CLASSES_ROOT\*\shell\Notepad++\command]
@="C:\\Program Files\\Notepad++\\Notepad++.exe %1 -multiInst -nosession"
0
Another option that I discovered looking at the Registry Editor on windows:
HKEY_CLASSES_ROOT/*/shellex
There should one of the following folders:
Now, on both of then the "Default" key should have the GUID of the registry to run, copy this value and search for it, select the "Settings" subkey: Notepad++ RegKey values
Edit "Custom" to have the same options as the image, if you wanted with session, don't add the "-nosession" flag.
Hint to create the file on cmd: 1) run as administrator (right click) 2)
type NUL > EmptyFile.txt
– Tom Brito – 2015-10-19T18:04:06.0232Thanks, that worked. Why not just put it as an option... – serg – 2010-10-22T18:25:21.830
1no 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.. – MetaGuru – 2010-10-22T18:42:08.227
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 – 2010-10-22T18:58:54.770
3This 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 – 2011-02-08T18:37:39.957
@MatthewScouten: would http://sourceforge.net/projects/notepad-plus/forums/forum/331753/topic/1859159 help?
– VonC – 2011-10-13T06:22:11.933