May 24, 2021 Sublime Text Use the manual
Writing code with Sublime text 3 is a pleasure, as is using Sublime text 3 formatting code plug-ins, HTML-CSS-JS Prettify is a plug-in that integrates formatting (beautifying) html, css, js. Plug-ins rely on nodejs, so they need to be installed in advance (highlighted here) before they can function properly.
Formatting HTML code with Sublime text 3 requires the installation of a plug-in, as follows:
1, open the menu - preferences - plug-in control (you can also use the shortcut ctrl-shift-p to call up the console), enter the install package
2, wait for the program to enter the plug-in management function, and then enter the plug-in name: prettify
3, click to install the plug-in HTML-CSS-JS Prettify.
4, after the successful installation of the plug-in, in the HTML/css/js code that needs to be formatted, select the code, and then format the code according to Ctrl-Alt-H.