Run > Modify Shortcut / Delete Command will allow you to add or change or delete the shortcut for a command, or remove the command from the Run menu, using the Shortcut Mapper interface. You can execute those commands by clicking on them. If you’ve saved commands, they will show up underneath the Run… entry in the Run menu. This is useful if you’ve changed your mind about running the external process, or if you just wanted to Save the command but not immediately run it. The Cancel button (or the upper right X in the dialog) will allow you to exit the dialog without running the command. OK will save the command (with the shortcut you defined) Cancel will abort the process, so the command doesn’t get saved. You can also assign the saved command a keyboard shortcut for use inside Notepad++ in that sub-dialog. The Save… button brings up a dialog to save the command you’ve typed as a named entry for the Run menu. The Run button actually runs the command. button allows you to browse for the program executable to run. The pulldown for this entry remembers previous commands you’ve run in this instance of Notepad++. If you need a path that has spaces in it, make sure to use quotes around the path, like "c:\program files\myapp\myapplication.exe" "d:\some other\file name\as argument.txt" (following cmd.exe argument quoting rules). If the command is not in your PATH, you will need to use c:\full\path\to\application.exe. The Program to Run entry field allows you to type the command to run. If you use a valid PowerShell command starting with powershell.exe, it will run the command in the PowerShell environment. If you prefix the command with cmd.exe /c (making sure to use appropriate syntax), it will run the command in an old Windows command prompt window prefixing with cmd.exe /k will run it in the command prompt window and will keep the window open after the command is done. You can type any command that you could type from the Windows OS Run dialog ( Win+R or Start Menu > Run). The Run > Run… menu entry launches the Run… dialog, which is the way to run a new command. That section of the manual also describes the underlying format of how saved Run-menu commands are stored in the shortcuts.xml config file. Because of the variable syntax (defined in the Configuration Files Details > User Defined Commands section of this manual), you can even use the filename or the current selected text or similar as arguments to the programs. The Run menu allows you to run arbitrary external commands from inside Notepad++, and to save the commands into new entries in the Run menu and even to assign keyboard shortcuts to those saved commands.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |