js-beautify v1.15.1 added a new setting to support indenting of Angular at-string syntax (beautifier/js-beautify#2247).
Previous additions were on-by-default. This new feature causes problems for non-angular users, so it is off by default.
It looks like the settings will need to be updated to allow supplying a list of templating formatters and add angular as an option:
|
export interface HTMLFormatConfiguration { |
|
tabSize?: number; |
|
insertSpaces?: boolean; |
|
indentEmptyLines?: boolean; |
|
wrapLineLength?: number; |
|
unformatted?: string; |
|
contentUnformatted?: string; |
|
indentInnerHtml?: boolean; |
|
wrapAttributes?: 'auto' | 'force' | 'force-aligned' | 'force-expand-multiline' | 'aligned-multiple' | 'preserve' | 'preserve-aligned'; |
|
wrapAttributesIndentSize?: number; |
|
preserveNewLines?: boolean; |
|
maxPreserveNewLines?: number; |
|
indentHandlebars?: boolean; |
|
endWithNewline?: boolean; |
|
extraLiners?: string; |
|
indentScripts?: 'keep' | 'separate' | 'normal'; |
|
templating?: boolean; |
|
unformattedContentDelimiter?: string; |
|
templating?: ('auto' | 'none' | 'django' | 'erb' | 'handlebars' | 'php')[]; |
js-beautifyv1.15.1 added a new setting to support indenting of Angular at-string syntax (beautifier/js-beautify#2247).Previous additions were on-by-default. This new feature causes problems for non-angular users, so it is off by default.
It looks like the settings will need to be updated to allow supplying a list of templating formatters and add
angularas an option:vscode-html-languageservice/src/htmlLanguageTypes.ts
Lines 31 to 48 in 81cf18f
vscode-html-languageservice/src/beautify/beautify-html.d.ts
Line 119 in 81cf18f