Editorconfig Guide.e

Attribute indent

EditorConfig key: html-attribute-indent

Attribute indent

html-attribute-indent

How continuation lines of tag attributes are indented.

Default value:

unset

Possible values:

  • unset
  • single_indent
  • double_indent
  • align_by_first_attribute

Examples

unset
single_indent
<a
  href="x"
  class="y">
double_indent
<a
    href="x"
    class="y">
align_by_first_attribute
<a href="x"
   class="y">