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