I have been using Notepad++ for years and still prefer it to most other source code editors, especially when it comes to web development. Its a great program that both Brian and I use everyday and recommend to anyone out there needing a good, solid code editor. However, one thing that has always bugged me about Notepad++ is that by default, you can only have one single instance of the program open at a time. If there is already an instance of Notepad++ open anywhere on your desktop, trying to open the program again will simply bring focus to the instance of the program that is already open. I don’t know why they haven’t set it to always open a new instance of the program by default, but fixing this minor annoyance is too easy to care. I will go ahead and show you two solutions for getting a new instance of Notepad++ to open up and as many as you want after that!
Solutions for getting a new instance of Notepad++
This solution is the one I use because it is permanent and involves changing the action of the program’s shortcut. All you have to do is add a simple command line switch! Go to the Notepad++ shortcut that you use to open the program, this can be in your start menu, on your desktop, or on your taskbar. (You can also add this command to all three shortcuts if you like) Right click on the shortcut and go to ‘Properties’. By default, the ‘Shortcut’ tab should be focused on, but if not, select the ‘Shorcut’ tab at the top. Now go to the text field labeled ‘Target:’, place your cursor at the end of all the current text, even the last quotation mark, put one space in, and then add the command ‘-multiInst’.
On a 64 bit OS:
"C:\Program Files (x86)\Notepad++\notepad++.exe" -multiInst
On a 32 Bit OS:
"C:\Program Files\Notepad++\notepad++.exe" -multiInst
(Take a look at the picture below to see exactly what it looks like) Now simply just click ‘Apply’ and your all done! Now when you open Notepad++ from that shortcut, it will by default open a new instance of the program! Enjoy!
This isn’t really a fix, but rather an option in Notepad++ that can be used if you want to get a file into a new instance quick. All you have to do is simply right click on the tab for the file in Notepad++ you are wanting to move over, and choose one of the two options located at the bottom of the list. You can either choose to move the tab out of the current instance and into a new one or to open up another copy of that file in a new instance.
The reason I don’t use this is simply because it always requires you to move something over to get a new instance to open. I like my first solution because I can start as many new, fresh instances of Notepad++ as I want and drag my files wherever I want them.