1.下载安装插件 NppExec
https://nchc.dl.sourceforge.net/project/npp-plugins/NppExec/NppExec%20Plugin%20v0.6%20RC2/NppExec_06RC2_dll_x64.zip
把文件解压到Notepad++安装目录下的plugins
2.命令的配置
插件 NppExec----Execute...----Command(s):
NPP_SAVE
javac "$(FULL_CURRENT_PATH)"
cd "$(CURRENT_DIRECTORY)"
java "$(NAME_PART)"
save----Java----save----ok
3.运行
编译执行,插件NppExec----Execute
重复执行,Direct Execute Previous
注:插件NppExec菜单,勾选Follow $(CURRENT_DIRECTORY)