Plugins-->Plugin Manager-->Show Plugin Manager
- 安装
NppExec
Plugins-->NppExec
- 输入以下参数
NPP_SAVE
cd "$(CURRENT_DIRECTORY)"
javac.exe "$(FILE_NAME)"
java.exe "$(NAME_PART)" 1234
5.定义快捷键
5.1 Plugins-->NppExec-->Advanced Options
5.2 Associated script
选择保存的脚本名
5.3 点击Add/Modify
5.4 勾选Place to the Macros submenu
5.5点击OK
- 重启Notepad++
Run-->Modify Shortcut/Delete Command-->Plugin Command
7.1找到自定的脚本名,更改快捷键