A normaliser/beautifier for HTML that also understands embedded Ruby. Ideal for tidying up Rails templates. Learn more on the HTML Beautifier GitHub page.
The extension requires HTML Beautifier to be installed on your Mac and globally available:
$ gem install htmlbeautifier
By default HTML Beautifier will format your .erb
files on save. You can disable this behavior from the extension or workspace settings.
You can also manually format the code with the Format Document
command of the editor.