Sublime format react plug-in configuration tutorial jsfmt configuration

Source: Internet
Author: User

1. Download the following plugins:

Https://github.com/ionutvmi/sublime-jsfmt#installation

This plugin is jsfmt and can be searched directly in the package;

The 2.user setting is placed in the following configuration:

{    "AutoFormat":true,    "Extensions":    [        "JS",        "Jsx",        "Sublime-settings"    ],    "Options":    {        "Jsx":        {            "Alignwithfirstattribute":true,            "Attrsonsamelineastag":false,            "Firstattributeonsameline":false,            "FORMATJSX":true,            "Maxattrsontag": 1        },        "Plugins":        [            "Esformatter-jsx"        ]    }}

3. Open the package file:

As above, install the NPM plugin in jsfmt:

NPM I [email protected] [email protected]

This plug-in can implement JSX code formatting, if not installed, not normal format jsx, can only format JS

4. Finally set the shortcut key:

, this is a tutorial in GitHub, as long as the plugin does not set the shortcut keys, such as to set their own shortcut keys

Sublime format react plug-in configuration tutorial jsfmt configuration

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.