Skip to content

Instantly share code, notes, and snippets.

@remlapmot
Last active April 26, 2021 14:38
Show Gist options
  • Save remlapmot/614c7122a656209b10031b48f44eec9c to your computer and use it in GitHub Desktop.
Save remlapmot/614c7122a656209b10031b48f44eec9c to your computer and use it in GitHub Desktop.
Shortcuts file for Notepad++. File location %appdata%\Notepad++
<NotepadPlus>
<InternalCommands />
<Macros>
<Macro name="Trim Trailing Space and Save" Ctrl="no" Alt="yes" Shift="yes" Key="83">
<Action type="2" message="0" wParam="42024" lParam="0" sParam="" />
<Action type="2" message="0" wParam="41006" lParam="0" sParam="" />
</Macro>
</Macros>
<UserDefinedCommands>
<Command name="Get PHP help" Ctrl="no" Alt="yes" Shift="no" Key="112">https://www.php.net/$(CURRENT_WORD)</Command>
<Command name="Wikipedia Search" Ctrl="no" Alt="yes" Shift="no" Key="114">https://en.wikipedia.org/wiki/Special:Search?search=$(CURRENT_WORD)</Command>
<Command name="Open file in another instance" Ctrl="no" Alt="yes" Shift="no" Key="117">notepad++ $(FULL_CURRENT_PATH) -nosession -multiInst</Command>
<Command name="Open in Explorer" Ctrl="yes" Alt="no" Shift="no" Key="116">explorer $(CURRENT_DIRECTORY)</Command>
<Command name="cmd current dir" Ctrl="yes" Alt="yes" Shift="yes" Key="68">cmd /K cd $(CURRENT_DIRECTORY)</Command>
<Command name="Current dir as Workspace" Ctrl="no" Alt="yes" Shift="yes" Key="87">notepad++ -openFoldersAsWorkspace -nosession -multiInst $(CURRENT_DIRECTORY)</Command>
<Command name="dolines" Ctrl="yes" Alt="no" Shift="no" Key="68">%homepath%\Documents\scripts\rundolines51\rundolines.exe</Command>
<Command name="dofile" Ctrl="yes" Alt="no" Shift="yes" Key="68">%homepath%\Documents\scripts\rundo51\rundo.exe &quot;$(FULL_CURRENT_PATH)&quot;</Command>
</UserDefinedCommands>
<PluginCommands />
<ScintillaKeys>
<ScintKey ScintID="2469" menuCmdID="42010" Ctrl="yes" Alt="yes" Shift="no" Key="68" />
</ScintillaKeys>
</NotepadPlus>
@remlapmot
Copy link
Author

remlapmot commented Feb 28, 2020

  • Uses Friedrich Huebler's AutoIt scripts from here
  • Edit the filepath to the rundo.exe and rundolines.exe executables as required
  • Make sure notepad++ is on your %path%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment