Notepad++ always in multi instance
I need 开发者_StackOverflow社区Notepad++ running in multiple instance mode without "-multiInst" parameter.
I can't use .lnk shortcuts, I can't use cmd.exe /c notepad++.exe -multiInst
, is there another way?
The only way I can think of doing this would be using a wrapper. Create a file called "np++.bat" with the following content:
"C:\Program Files\Notepad++\Notepad++" -multiInst %1
Put it somewhere in your PATH. You can then invoke it as:
np++.bat file.txt
If you need MDI-mode Notepad++, there is no way to force it to start in multi-instance mode without the -multiInst
parameter.
If you can work with SDI-mode Notepad++ (like Notepad), it'll default to multi-instance mode just like the default Notepad on Windows: one window per file. To trigger SDI mode, place an empty file called asNotepad.xml
in %ProgramFiles%\Notepad++
. Be sure to back up your %AppData%\Notepad++
folder before starting Notepad++ again.
You can also manually create another instance by going to Run > Open in another instance
.
Actually there is a way to do it without the -multiInst parameter:
create a totally empty file called 'asNotepad.xml' and put it in the Notepad++ directory at the same level as the notepad++.exe file
https://superuser.com/questions/202399/how-to-make-notepad-open-each-file-in-new-window
- Settings > Preferences... > Multi-instance
- Click "Always in multi-instance mode"
- Click Close
- Close all Notepad++ programs
It did not work the first two times I tried it. Maybe Notepad++ takes a while to fully exit.
Hoi, in a n++.bat file, in your path just enter: (for the x86 version )
start "N++ Multi Instance" /D"C:\Program Files (x86)\Notepad++\" Notepad++ -multiInst %1
Then pull the link to that bat file via right mouse click and drag and drop it to your desktop.
Just click on the link/icon and your n++ starts with every click!
I had a similar problem with Notepad++ not remembering that I had chosen not the "Remember Current Session". I tried hacking the config file, but that didn't work. Then I found out that there is a secret config file in your C:\Users\myuseraccount\AppData\Roaming\Notepad++ directory (Windows 7 x64). Mine was empty, meaning who know where the config was really coming from, but I copied over the file with the one in C:\Program Files (x86)\Notepad++ and now everything works just like you would expect it to.
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%
...
The easiest way is to right-click a tab and "open in new window"... voilà!
精彩评论