﻿---
title: indent_style
description: Indent with spaces or tabs. Defaults to `space`
url: https://docs-v3-preview.elastic.dev/reference/core/indent_style
---

# indent_style
Indent with spaces or tabs.

## Values


| Value   | Notes |
|---------|-------|
| `space` |       |
| `tab`   |       |

**Default:** `space`

### `indent_style = space`

```ini
indent_style = space
```

<tab-set>
  <tab-item title="Before">
    ```csharp
    namespace N;

    public class Widget
    {
    	public int Value { get; set; }

    	public int Double()
    	{
    		return Value * 2;
    	}
    }
    ```
  </tab-item>

  <tab-item title="After">
    ```csharp
    namespace N;

    public class Widget
    {
        public int Value { get; set; }

        public int Double()
        {
            return Value * 2;
        }
    }
    ```
  </tab-item>
</tab-set>


### `indent_style = tab`

```ini
indent_style = tab
```

<tab-set>
  <tab-item title="Before">
    ```csharp
    namespace N;

    public class Widget
    {
        public int Value { get; set; }

        public int Double()
        {
            return Value * 2;
        }
    }
    ```
  </tab-item>

  <tab-item title="After">
    ```csharp
    namespace N;

    public class Widget
    {
    	public int Value { get; set; }

    	public int Double()
    	{
    		return Value * 2;
    	}
    }
    ```
  </tab-item>
</tab-set>