吐槽

notepad++打造万能运行环境

添加运行代码。例如:

matlab

cmd /k cd /d "$(CURRENT_DIRECTORY)" & matlab -nosplash -nodesktop -r "$(NAME_PART)" & ECHO &PAUSE & EXIT

python

cmd /k cd /d "$(CURRENT_DIRECTORY)" & python "$(FULL_CURRENT_PATH)" & ECHO & PAUSE & EXIT

node.js

cmd /k cd /d "$(CURRENT_DIRECTORY)" & node "$(FULL_CURRENT_PATH)" & ECHO & PAUSE & EXIT

运行的程序都需要添加环境变量,否则应该添加全路径如matlab -nosplash -nodesktop 应改为C:\Program Files\matlab.exe -nosplash -nodesktop
分别添加快捷键即可