Notepad++ is brilliant in its infinite capacity for customisation, I recently found out that it can be taught to run VBScript files straight from the editor via keyboard shortcut – no more saving, navigating to the folder to run the file and then back to Notepad++ to edit again! to do this simply
- Find the shortcut.xml file. Generally this is somewhere like:
"C:\Users\Username\AppData\Roaming\Notepad++"
- Open it up and find theĀ <UserDefinedCommands> section
- Add in the line
<Command name="Wscript" Ctrl="yes" Alt="no" Shift="no" Key="116">c:\WINDOWS\system32\wscript.exe "$(FULL_CURRENT_PATH)"</Command>
- Close all open instances of Notepad++
Voila, now whilst you’re in Notepad++ you can execute the currently open file by hitting Ctrl+F5 although you can change this mapping by going to “Run”>”Modify shortcut/Delete command”.
Note: This passes the path of the currently open file so you’ll need to save your file before running it to reflect changes