First, set
Run, set cmd/k Lua "$ (full_current_path)" & PAUSE & EXIT
Second, the principle:
The meaning of cmd/k is to execute the following command, and to keep the window after execution is complete
Cmd/k Lua is equivalent to starting –> run –> input cmd–> input LUA
$ (full_current_path) means the full path of the current file, which is the notepad++ macro definition & is a connection to multiple commands
Pause indicates the end of the run and waits for an arbitrary key
Exit means close the command-line window (you can omit EXIT if you use cmd/c). )
Third, error and analysis:
1. Environment variables for LUA are not set
Test: Start-and-run input cmd–> input LUA
If "Lua" is not an internal or external command, there is no environment variable configured for LUA.
2. Setting Environment variables
My Computer, advanced system settings, environment variable, select path to add Lua's bin path
Verify again that if the version information for Lua appears, the setting is successful
3. If this is set, or not, then turn off the notepad++, restart, and then set (my case is this, after the reboot will be OK)
Four, the shortcut key modification method:
1. On notepad++ Select Settings-Shortcut Mapper ..., then open the Shortcut Mapper window, I set the shortcut key is ctrl+alt+z, be careful not to conflict with other shortcut keys!
V. the same: Set Python commands
cmd/k python "$ (full_current_path)" & PAUSE & EXIT-Sava
Lua Learning notepad++ settings run Lua and Python