

OS Name : Windows 7 Professional (64-bit) Path : C:\Programs\Notepad++\notepad++.exe My usage environment (with the plugins data removed): Notepad++ v8.1.9 (32-bit) All testing so far has been performed by manually using the Run menu selection. I thought this trick would make a nice addition to my “npp_config.bat” file for editing editor and plugin configuration files, however there appear to be ‘caveats’ related to it’s use.

The forced command is similar to the one posted on question Need command to restart Notepad ++, but I added a prefix start "" to the last command, which allows the DOS console to close said in Notepad++ Restart Shortcut Key: The first command performs a graceful restart, and the second command performs a force restart, and it doesn’t have a shortcut key, but it can be accessed from the Run menu. Ĭmd /c taskkill /im notepad++.exe & TIMEOUT /T 1 & start '' '$(NPP_FULL_FILE_PATH)'Ĭmd /c taskkill /f /im notepad++.exe & start '' '$(NPP_FULL_FILE_PATH)'


The file can be open with the following command: notepad.exe %appdata%\Notepad++\shortcuts.xmlįor my installation, I include 2 restart commands. On most installations, the file is usually located in following path: C:\Users\\AppData\Roaming\Notepad++\shortcuts.xml You’ll now have a shortcut key ctrl-alt-shift-R to restart notepad++, and a menu option Run-> Restart. After changing the file, close Notepad++, and restart it manually (for the last time). I’ve been wanting a restart option for Notepad++ for a long time now, and I finally looked into it and found an easy great working solution.įor anyone else interested in it, here it is: cmd /c taskkill /im notepad++.exe & TIMEOUT /T 1 & start '' '$(NPP_FULL_FILE_PATH)'Īdd the above line into the shortcuts.xml file immediately after line having.
