Sublime plug-in (with Nodejs environment)

Source: Internet
Author: User

Firstly, first install Nodejs, download from Nodejs official website www.nodejs.cn

Install directly after download, select the NPM package version to install, do not need to configure environment variables after installation, NODEJS will be configured automatically.

Open the cmd command line, enter node-v, display v4.4.4, indicating that the installation was successful.

Second, install HTML/CSS/JS prettify plug-in, the plugin can format HTML, CSS, JS files, but rely on the node environment.

1, Sublime ctrl+shift+p call command line, enter prettify, find the appropriate plug-in installation. After the installation is complete, the Ctrl+shift+h shortcut key can format the file.

Third, install Sublimeliner, Sublimeliner-jshint plug-in, the plug-in can prompt JS syntax error, is also dependent on the node environment. Now that Sublimeliner is the third version, installing the plugin automatically comes with the Sublimeliner-jshint plugin.

1, Sublime ctrl+shift+p call command line, enter Sublimeliner, find the appropriate plug-in installation.

2, Nodejs need to add jshint dependency, open the command line, enter NPM install-g jshint, this will automatically download the dependency.

3, then you can make some settings for the plug-in, the specific settings can refer to Sublimeliner official website  http://www.sublimelinter.com/en/latest/

{"User": {"Debug": false, "delay": 0.25, "Error_color": "D02000", "Gutter_theme": "Packag Es/sublimelinter/gutter-themes/default/default.gutter-theme "," gutter_theme_excludes ": []," Lint_mode ":" BAC                Kground "," Linters ": {" Coffeejshint ": {" @disable ": false," args ": [],            "Excludes": [], "Globals": "", "Options": "Browser,devel,node"}, JS prompt Set "Jshint": {"@disable": false, "args": [], "bro Wser ": True," Curly ": true," devel ": True," Eqeqeq ": true," ev Il ": true," excludes ": []," Forin ": True," jquery ": true," Noa RG ": True," Noempty ": true," strict ": true," undef ": true," ws   H ": true}     },//Tag style, you can view "Mark_style" from the official website: "squiggly underline", "no_column_highlights_line": false,        "Passive_warnings": false, "paths": {"Linux": [], "OSX": [], "Windows": [] }, "Python_paths": {"Linux": [], "OSX": [], "Windows": []}, "RC        _search_limit ": 3," Shell_timeout ": Ten," Show_errors_on_save ": false," Show_marks_in_minimap ": true,  "Sublimelinter": "Save-only", "Syntax_map": {"HTML (Django)": "HTML", "HTML (Rails)":            "HTML", "HTML 5": "HTML", "JavaScript (Babel)": "JavaScript", "Magicpython": "Python", "PHP": "html", "Python Django": "Python", "pythonimproved": "Python"}, "war Ning_color ":" DDB700 "," Wrap_find ": True}}

After saving, look at the following effects:

Sublime plug-in (with Nodejs 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: info-contact@alibabacloud.com 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.