Notepad++ multi-window shortcut

These techniques allow a Windows development machine to use Notepad++ more effectively. Notepad++ is a free source code editor and Notepad. It was first released in 2003 and is an open source project.

winget install Notepad++.Notepad++
  • Notepad++ from command line: add to user environment variable Path the binary path of Notepad++ – typically at %PROGRAMFILES%\Notepad++. This allows using notepad++ from the Windows Terminal.

  • Notepad++ shortcut icon open a new window: When using multiple virtual desktops, by default Notepad++ snaps to the other desktop when clicking the Notepad++ start menu icon. Make the Notepad++ icon open a new Notepad++ window by editing the Notepad++ start menu shortcut, appending -multiInst to the right and outside of the quoted full Target path to notepad++.exe. This allows opening multiple Notepad++ windows, each with its own set of tabs.

  • Notepad++ open directory as project: To open a directory as a project, use the command line option -openFoldersAsWorkspace followed by the path to the directory.

notepad++ -openFoldersAsWorkspace "C:\path\to\directory"

opens that directory in Notepad++ as a hierarchical workspace rather than opening every individual file.