Angular Template FormatterExtension 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. 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.0.11Fixing parsing issues with and adding additional default tags for 0.0.9Added option for setting certain HTML tags whose contents should be completely ignored: 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 |