{
"cmd": ["node", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.js",
"shell":true,
"encoding": "GB2312",
"windows":
{
"cmd": ["node", "$file"]
},
"linux":
{
"cmd": ["killall node; node", "$file"]
}
}
regedit
在 HKEY_CLASSSES_ROOT→ * → Shell 下面新建項命名爲 Edit with Sublime Text
在新建字符串值 命名爲Icon,值爲 「Sublime text 所在路徑,0″,如 C:\Program Files\Sublime Text 2\sublime_text.exe,0
在Edith with Sublime Text 下面新建項command ,在默認中輸入值爲 C:\Program Files\Sublime Text 2\sublime_text.exe %1