Angular Template Formatter
Extension for formatting Angular 2+ HTML templates. This extension is opinionated and not very configurable.
This extension is a fork of Angular Template Formatter that adds additional configuration options. It also changes the default value of some of the configuration options.
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.
This template from the Angular Tour of Heroes:
will get formatted to:
Fixing parsing issues with and adding additional default tags for
Added option for setting certain HTML tags whose contents should be completely ignored:
Added option for preventing closing tag
Added an option for tabs vs spaces. Thanks @Empereol!
Added configuration option for indentWidth, defaults to 4.
Initial release of Angular template formatter