Sublime Textを設定し、Node.jsでJavaScriptプログラムを実行します.
1132 ワード
1. nodejs.org Node.js 。
2. Sublime Text 2 。 Tools --> Build System --> new Build System...
3. JavaScript.sublime-build
4. :
{
"cmd": ["node", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.javascript"
}
5. Sublime Text 2. Tools --> Build System --> JavaScript
6. Ctrl + b JavaScript
bat
{
"cmd": ["aa.bat"],
"working_dir": "D:\\demo",
"encoding": "GBK"
}