只上图和代码,不说话哈~~
Preferences -> Browse Packages
在目录下找到 ./Nodejs/Nodejs.sublime-build并编辑
{
"cmd": ["node", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.js",
"shell":true,
"encoding": "utf8",
"windows":
{
"cmd": ["taskkill /F /IM node.exe & node", "$file"]
},
"linux":
{
"cmd": ["killall node; node", "$file"]
}
}
重启,完啦~