It's been a long time, so simple.
1. Package Control Installation Nodejs
2, modify the Nodejs.sublime-settings file, the Nodejs path to their own
3. Sublime Text 3 comes with build system tools->nodejs-> run ...
So you can.
=================== Split Line ============== online A lot of references are as follows =====
Construction of node. JS development environment based on sublime Text3 in Windows environment
Win under Sublime Text 3 development Nodejs
Sublime Text 3 comes with a build system, justtools->build system-> new build system...
Write:
{ "shell_cmd": "node $file", "selector": "source.js"}
Save As node.sublime-build
, you can use the cmd+shift+b
callout window to select the node
compilation.
In the keymap
bind button:
{ "keys": ["ctrl+c"], "command": "exec", "args": { "kill": true } }
You can use the shortcut key CTRL + C to close, or manually click the tools-> cancel build
interrupt.
If you need to compile ES6 code, consider replacing it with babel,build tools.
{ "shell_cmd": "babel-node $file", "selector": "source.js"}
Sublime3 Configuring the Node build environment