Angular Template Formatter READMEExtension for formatting Angular 2+ HTML templates. This extension is opinionated and not very configurable. Formatting:When run, this extension will put each HTML attribute on its own line—unless there is a single attribute declared on the HTML tag. In the case of a single attribute, the tag and attribute will be put on a single line. Example:This template from the Angular Tour of Heroes:
will get formatted to:
Recommended Configuration:
Release Notes0.1.2Preserves HTML escaped entitities 0.1.1Does not remove <!DOCTYPE> tags when formatting. 0.1.0Now formats svgs in templates 0.0.8Added option for preventing closing tag 0.0.7Added an option for tabs vs spaces. Thanks @Empereol! 0.0.2Added configuration option for indentWidth, defaults to 4. 0.0.1Initial release of Angular template formatter |