I was looking for a HTML pretty printer (…) but in Visual Studio code, that is called code formatting, which supports many languages out of the box (including HTML) without requiring extensions like Atom.io (see below).
The shortcuts are at [WayBack] How do you format code in Visual Studio Code (VSCode) – Stack Overflow.
For Mac OS X/OS X/MacOS they are (the second one only appears when you have a code selection):
- document:
Shift
–Option
–F
- selection:
Command
–K
Command
–F
For Atom.io, you can use extensions like these:
- [WayBack] atom-beautify Beautify HTML, CSS, JavaScript, PHP, Python, Ruby, Java, C, C++, C#, Objective-C, CoffeeScript, TypeScript, Coldfusion, SQL, and more in Atom
- [WayBack] atom-prettify Prettify your HTML
- [WayBack] atom-formatter-jsbeautify Formatter plugin adding a js-beautify interface to the Atom editor. Format and Reindent your Javascript (JS), JSX, JSON, HTML, XML, CSS, SASS, SCSS, LESS files
–jeroen