Home > Development Tools > sublime > How to format html/css/js in sublime with one click

How to format html/css/js in sublime with one click

藏色散人
Release: 2020-07-02 11:56:12
forward
7735 people have browsed it

The following tutorial column of sublime will introduce you to sublime's one-click formatting of html/css/js. I hope it will be helpful to friends in need!

How to format html/css/js in sublime with one click

1. Use the shortcut key ctrl shift p to bring up the console, enter install package, and then enter html-css-js prettify to download

2. After the download is completed, open the package settings in preference, and the following content will appear:

html-css-js prettify is successfully installed.

3. The specific shortcut keys are in preference > package setting > html/css/js prettify > keyboard-shortcuts-default


Note: easy mistakes!

When the blogger used it for the first time, pressing ctrl shift h did not work. He found that this plug-in relied on node.js, so he had to download node.js (no level required to download node.js Too low)

node.js download address: http://nodejs.cn/download/

After downloading, use cmd, enter the downloaded directory, and use node.exe --version

In this way node.js is installed successfully!

Then modify the

red mark in preference > package setting > html/css/js prettify > plugin-options-default in sublime Change it to the installation address of node

Use ctrl shift h again to format html/css/js

ps:

There may be a hotkey conflict, I Using Sogou input method, using ctrl shift h is to change the skin of Sogou input method. You have to switch to English under the input method that comes with the computer before you can use it!

The above is the detailed content of How to format html/css/js in sublime with one click. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template