Format HTML + CSS with JS-beautify
This was news to me, but: JS Beautify can beautify more than just JS. It can autoformat your CSS and HTML, including one of my favorite pathologies: wrapping + aligning attributes:
Possible values:
auto, force, force-aligned, force-expand-multiline, aligned-multiple, preserve, preserve-aligned
Or on the command-line:
-A, --wrap-attributes
Side note: there’s also a jsbeautify (no dash), which is something different. Remember the dash, js-beautify.