Notepad++_For_Java 环境配置
1、安装或者加载插件“NppExec”
Notepad -> Plugins -> Available -> NppExec -> Install
2、Plugins -> NppExec -> Execute..
javac:
NPP_SAVE
D:\tools\Java\jdk17\bin\javac.exe "$(FULL_CURRENT_PATH)"
java:
cd "(CURRENT_DIRECTORY)"
D:\tools\Java\jdk17\bin\java.exe "$(NAME_PART)"
run:
NPP_SAVE
cd "$(CURRENT_DIRECTORY)"
D:\tools\Java\jdk17\bin\javac.exe "$(FULL_CURRENT_PATH)"
D:\tools\Java\jdk17\bin\java.exe "$(NAME_PART)"
3、设置“宏”的快捷键(Notepad -> Macro -> Modify Shortcut -> Plugin commands ):
命令名: 快捷键
javac alt+shift+z
java alt+shift+x
run alt+shift+c