﻿---
title: xml_attribute_indent
description: Where an attribute on a line of its own starts. Unset keeps its offset from its element as written. Defaults to `(not set)`
url: https://docs-v3-preview.elastic.dev/reference/xml/layout/xml_attribute_indent
---

# xml_attribute_indent
Where an attribute on a line of its own starts. Unset keeps its offset from its element as written.

## Values


| Value                      | Notes |
|----------------------------|-------|
| `single_indent`            |       |
| `double_indent`            |       |
| `align_by_first_attribute` |       |

**Default:** `(not set)`
Unset, an attribute on a line of its own keeps its offset from its element, so attributes aligned under the first one stay aligned when the element is re-indented. A value's own continuation lines never move.

### `xml_attribute_indent = single_indent`

```ini
xml_attribute_indent = single_indent
```

<tab-set>
  <tab-item title="Before">
    ```xml
    <Project>
        <Target Name="Pack"
                DependsOnTargets="Build"
                Condition="'$(IsPackable)' == 'true'">
        </Target>
    </Project>
    ```
  </tab-item>

  <tab-item title="After">
    ```xml
    <Project>
      <Target Name="Pack"
        DependsOnTargets="Build"
        Condition="'$(IsPackable)' == 'true'">
      </Target>
    </Project>
    ```
  </tab-item>
</tab-set>


### `xml_attribute_indent = double_indent`

```ini
xml_attribute_indent = double_indent
```

<tab-set>
  <tab-item title="Before">
    ```xml
    <Project>
        <Target Name="Pack"
                DependsOnTargets="Build"
                Condition="'$(IsPackable)' == 'true'">
        </Target>
    </Project>
    ```
  </tab-item>

  <tab-item title="After">
    ```xml
    <Project>
      <Target Name="Pack"
          DependsOnTargets="Build"
          Condition="'$(IsPackable)' == 'true'">
      </Target>
    </Project>
    ```
  </tab-item>
</tab-set>


### `xml_attribute_indent = align_by_first_attribute`

```ini
xml_attribute_indent = align_by_first_attribute
```

<tab-set>
  <tab-item title="Before">
    ```xml
    <Project>
        <Target Name="Pack"
                DependsOnTargets="Build"
                Condition="'$(IsPackable)' == 'true'">
        </Target>
    </Project>
    ```
  </tab-item>

  <tab-item title="After">
    ```xml
    <Project>
      <Target Name="Pack"
              DependsOnTargets="Build"
              Condition="'$(IsPackable)' == 'true'">
      </Target>
    </Project>
    ```
  </tab-item>
</tab-set>