Nothing Special   »   [go: up one dir, main page]

Format code with the HTML-CSS-JS Prettify plugin for Sublime Text 3

tags: sublime text  javascript  html  css  editor

1. First, you must have the Sublime Text 3 editor;

2. You need to configure the NodeJS environment locally (for the installation method, please refer to:One of Node.js study notes);

3. Your Sublime Text 3 editor needs to install the HTML-CSS-JS Prettify plugin (for the installation method, please refer to:Summary of commonly used plugins for Sublime)。

4. We open the Sublime Text 3 editor and install the HTML-CSS-JS Prettify plugin.

a) In Sublime Text 3, press Ctrl+Shift+P to bring up the command panel;

b) Enter install to call out the Install Package option and press Enter;

c) Enter pretty, select HTML-CSS-JS Prettify in the list and press Enter to install.

5. View the locally installed NodeJS configuration environment path (under the dos command, enter where node and press Enter).

6. In any html/js/css file in the editor, right-click, as shown in the figure below, select Set Plugin Options.

7. Save the NodeJS local path in step 2 above to the file opened in step 3, as shown in the figure below.

example

Intelligent Recommendation

Sublime Text2 formatting HMTL/CSS/JS plugin HTML-CSS-JS Prettify

I have used JSFormat for formatting before, and today I found a good plugin HTML-CSS-JS Prettify on GitHub, the specific address is https://github.com/victorporof/Sublime-HTMLPrettify, if you install ...

Green version of Sublime install package Control, HTML-CSS-JS Prettify plugin

  1. Download URL https://github.com/wbond/package_control Rename the compressed file to Package Control   Two, unzip     Three installation   Copy the decompressed Package Co...

The sublime text3 plugin html-css-js prettify reported An unhandled OS error was

After I installed the code formatting plug-in html-css-js prettify, an error message popped up when I used it, as shown in the figure below The meaning is probably that the path of node.js is not conf...

Solution: After sublime text3 formatting (html+css+js Prettify), the code is still not aligned

After sublime text3 formatting (html+css+js Prettify), the code is still not aligned Reason: Solution: I don't know why!...

SublimeText3 HTML-CSS-JS PRETTIFY plug-in formatting JS code "?." "?"

Recently, when SublimeText3 is formatted by HTML-CSS-JS PRETTIFY plug-in, it is found that it is not supported?. And ??, formatted into?. And ??, that was, the space was inserted in the middle, result...

More Recommendation

Sublime Text 3 format xml, php, html, js, css plug-in installation configuration

table of Contents 1 Introduction 2. Install the formatted XML plugin 2. Install the formatted PHP plugin 3. Install formatted html, js, css plug-ins to sum up 1 Introduction When using Sublime to writ...

Sublime Text 3 format code plugin codeFormatter for php

The default shortcut key ctrl+alt+F, the default can be html, js, css format code, if you want to format PHP, you need PHP5.6 or above, and you need to configure sublime (package setttings > codeFo...

SUBLIME HTML / CSS / JS PRETTY plugin

2019 Unicorn Enterprise Heavy Glour Recruitment Python Engineer Standard >>> 1, Sublime Search HTML PRETTY 2, install 3, set the NODE path 4, right-click or Ctrl + Shift + H, format HTML code...

Sublime Text Html plugin

View In Browser plugin installation Install View In Browser plugin Shortcut key Ctrl+Shift+P Enter Install Package and press Enter, enter View In Browser and press Enter Set shortcut keys Preferences-...

HTML-CSS-JS Prettify Node.js was not found error solution

HTML-CSS-JS Prettify error Node.js was not found sublime editor plug-ins installed prettify, js css html format can be very useful, but after Bahrain always prompt Node.js was not found. Repeatedly co...

Copyright  DMCA © 2018-2025 - All Rights Reserved - www.programmersought.com  User Notice

Top