sublime text3 配置nodejs build 环境

可参考使用Sublime Text 3 进行Python3开发
Tools–>Build System–>New Build System 写入

{
    "shell_cmd": "/usr/local/bin/node ${file}",
    "selector": "source.javascript",
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "working_dir": "${file_path}",

}

保存为/Packages/User/node.sublime-build
然后选择环境为node即可

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.