Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

wrappedAttributeIndent

Indentation strategy for wrapped attributes

Type"one-level" | "align-to-tag-name"
Default"align-to-tag-name"

Values

Input

<rect id="box" x="10" y="20" width="100" height="50" fill="red" />

"one-level"

Indent one level deeper than the tag.

<rect
  id="box"
  x="10" y="20" width="100" height="50"
  fill="red" />

"align-to-tag-name"

Align to the column after <tagName.

<rect id="box"
      x="10" y="20" width="100" height="50"
      fill="red" />

Config

{
  "svg": {
    "wrappedAttributeIndent": "align-to-tag-name"
  }
}