﻿---
title: csharp_indent_labels
description: How goto labels are indented. Defaults to `one_less_than_current`
url: https://docs-v3-preview.elastic.dev/reference/indentation/csharp_indent_labels
---

# csharp_indent_labels
How goto labels are indented.

## Values


| Value                   | Notes |
|-------------------------|-------|
| `one_less_than_current` |       |
| `flush_left`            |       |
| `no_change`             |       |

**Default:** `one_less_than_current`

### `csharp_indent_labels = one_less_than_current`

```ini
csharp_indent_labels = one_less_than_current
```

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

    public class Widget
    {
        public void Run(bool skip)
        {
            if (skip)
                goto end;
            Console.WriteLine("working");
                end:
            Console.WriteLine("done");
        }
    }
    ```
  </tab-item>

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

    public class Widget
    {
        public void Run(bool skip)
        {
            if (skip)
                goto end;
            Console.WriteLine("working");
        end:
            Console.WriteLine("done");
        }
    }
    ```
  </tab-item>
</tab-set>


### `csharp_indent_labels = flush_left`

```ini
csharp_indent_labels = flush_left
```

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

    public class Widget
    {
        public void Run(bool skip)
        {
            if (skip)
                goto end;
            Console.WriteLine("working");
        end:
            Console.WriteLine("done");
        }
    }
    ```
  </tab-item>

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

    public class Widget
    {
        public void Run(bool skip)
        {
            if (skip)
                goto end;
            Console.WriteLine("working");
    end:
            Console.WriteLine("done");
        }
    }
    ```
  </tab-item>
</tab-set>


### `csharp_indent_labels = no_change`

```ini
csharp_indent_labels = no_change
```

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

    public class Widget
    {
        public void Run(bool skip)
        {
            if (skip)
                goto end;
            Console.WriteLine("working");
        end:
            Console.WriteLine("done");
        }
    }
    ```
  </tab-item>

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

    public class Widget
    {
        public void Run(bool skip)
        {
            if (skip)
                goto end;
            Console.WriteLine("working");
            end:
            Console.WriteLine("done");
        }
    }
    ```
  </tab-item>
</tab-set>