137

I want to run Notepad++ twice. Like in this paint printscreen.

How I want it:

Enter image description here

Not what I want:

Enter image description here

Is this possible?

JochemQuery
  • 1,539

9 Answers9

212

Hit Alt+F6. This opens whatever text is currently selected in a new window[*].

If no text is currently selected, it opens an empty new 1 default initial tab in a new instance [thanks @Otiel]

If you don't feel keyboard-y, going to Run, Open in another instance has the same effect.

[*]Note the difference between Alt+F6 and right click tab then Move to new instance and Open in new instance which always duplicate the tab in the new instance.

qweet
  • 4,538
29

From Matt Refghi site How to Launch Multiple Instances of Notepad++:

  1. Right-click any Notepad++ shortcut.
  2. Select Properties.
  3. Move to the Shortcut tab.
  4. In the end of the Target field, add ” -multiInst”.
techraf
  • 4,952
25

Other than opening another instance with Alt+F6 (as in @qweet's answer), if you already have the file open in the first instance of Notepad++, here are some alternatives:

  • Click on the tab for the file and then drag it outside the Notepad++ window and drop it anywhere outside; this will open a new instance with the desired file. For this to work, the first instance should not be maximized so that you have space to drop the tab outside of the window.
  • Right-click on the tab for the file and choose one of the following options:
    • Move to new instance: opens new window with the file in it; removes file from original instance.
    • Open in new instance: opens new window with the file in it; retains same file in the original instance.
    • Move/Clone to other view: opens split window in the same instance with the file in the split window.

The advantage of all of these approaches is that the new instance already includes the file that you had open in the original instance.

Tripartio
  • 650
7

Converting demoncodemonkey comment into an answer:

On Windows Environment

I just did this:

  1. Normally created a short cut for Notepad++ on my desktop
  2. Right clicked on the shortcut > Properties
  3. Under the Shortcut tab in the "C:\Path\to\Notepad++\notepad++.exe" -multiInst -nosession
  4. Save the changes, close the dialog and use!
Mercury
  • 171
6

firstly you have to have the file saved and then use the right-click for the file tab and choose - Open in new instance show picture... otherwise use CTRL+F6 best regards

screen capture of the new instance

Toto
  • 19,304
3

I needed a solution that integrated with Windows Explorer's rt-click popup menu. To accomplish this I edited the registry and used the -multiInst.

Added key to registry: Computer\HKEY_CLASSES_ROOT\*\shell\Edit with Notepad++ (New Instance)\command

Then under the new key edited the (Default) field to be the desired commandline: C:\Program Files\Notepad++\notepad++.exe" -multiInst %1

See image links (sorry, not enough rep to embedded)

references:

https://www.howtogeek.com/howto/windows-vista/add-open-with-notepad-to-the-context-menu-for-all-files/

https://notepad-plus-plus.org/assets/images/scsh/scsh_cmdlineArguments.png

windows explorer rt-click menu registry

0

Here's how to run multiple instances with separate backups for each:

  1. Run the Notepad++ installer, but instead of installing in Program Files, install in a directory somewhere else such as My Documents.

  2. When you get to the last step of the installation, check "Don't use %APPDATA%".

  3. Run the Notepad++ installer again a second time, in a second directory. Run it once for each instance you want to be able to use.

  4. Navigate to each installation directory you created and right click "notepad++.exe" and select "Create shortcut".

  5. Right click each shortcut and append " -multInst" into the "Target" field. You can also give each shortcut a nickname under "General".

There you go. Now each of the Notepad++ instances will keep it's own backup. Just be careful not to open more than one executable from the same location, or those will interfere with each other and you can still accidentally overwrite the backup of that instance.

azoundria
  • 869
0

If you're using Windows 10/11 and you've pinned the Notepad++ app to the Windows taskbar, shortcuts for user-pinned taskbar apps are stored within this folder within Windows' file system:

%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\

Knowing this, you can use Matt Refghi's instructions (as suggested by Waleed Mahmoud) to modify the Notepad++ taskbar shortcut so it always invokes separate instances of Notepad++.

[HINT: If Notepad++ is already running, left-clicking with the mouse on the taskbar's Notepad++ icon activates the already running instance of Notepad++; it doesn't invoke a new instance of Notepad++. Therefore, if Notepad++ is already running and you want to invoke an additional instance of Notepad++ via the taskbar icon, press and hold the SHIFT key as you left-click with the mouse (SHIFT + Left Click) on the Notepad++ icon on the taskbar. Of course, this works only after you've modified the shortcut for the Notepad++ icon.]

See also:

0

What worked for me now on Windows 11 (64) the "%1" needs to be in quotes In addition to user1627960 answer:

  1. Create key Computer\HKEY_CLASSES_ROOT*\shell\Edit with Notepad++ (New Instance)

  2. Create new key "command" within the key "Edit with Notepad++ (New Instance)"

  3. Add to the default key: "C:\Program Files\Notepad++\notepad++.exe" -multiInst "%1"

This opens a single instance for me with a rightclick on any file

Ingo Mi
  • 201