[K] Installing the Sublime2 less2css plugin

Source: Internet
Author: User

A: Less2css plug-in's current main features include:

1: Automatically generate CSS files with the same name when the less file is saved;

2: When the less file is saved, the compiler error message is prompted;

3: Bulk compile all the less files in the project directory as CSS files.

Less2css will also add @imports feature support in the future, and can automatically compile other files that reference this less file at the same time.

Two: The method of installing LESS2CSS is as follows:

1: Press to Ctrl+Shift+P  bring up the command panel;

2: Input call out install  Install Package  option and enter;

3: Enter less2css , select and install.

Note At this time sublime the bottom left corner of the information installation tips, success will be prompted.

Three: Less2css plugin needs LESSC (Windows system)

: Https://github.com/duncansmart/less.js-windows

After you download the package, and then unzip it, add the file path (for example: D:\Program files (x86) \sublime\data\packages\less) to the system environment path variable.

Then in cmd, the input lessc, without error, indicates that the environment variable was set successfully.

Four: Verify that the LESS2CSS is installed successfully

Then restart the sublime, and then sublime Open or create a new less file, press Ctrl+s Save, it should be in the less file in the same directory to generate a CSS file with the same name.

[K] Installing the Sublime2 less2css plugin

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.