Editorconfig Guide.e

Attribute style

EditorConfig key: html-attribute-style

Attribute style

html-attribute-style

How multiple attributes on a tag are laid out.

Default value:

do_not_touch

Possible values:

  • on_single_line
  • first_attribute_on_single_line
  • on_different_lines
  • do_not_touch

Examples

on_single_line
<a href="x" class="y" id="z">
first_attribute_on_single_line
<a href="x"
   class="y"
   id="z">
on_different_lines
<a
   href="x"
   class="y"
   id="z">
do_not_touch
<a href="x"
   class="y" id="z">