Sublime3 Configuring the Node build environment

Source: Internet
Author: User
Tags sublime text

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...

{  "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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.