﻿---
title: csharp_place_simple_enum_on_single_line
description: Allow a short enum body to stay on one line. Defaults to `true`
url: https://docs-v3-preview.elastic.dev/reference/wrapping/csharp_place_simple_enum_on_single_line
---

# csharp_place_simple_enum_on_single_line
Allow a short enum body to stay on one line.

## Values


| Value   | Notes |
|---------|-------|
| `true`  |       |
| `false` |       |

**Default:** `true`

### `csharp_place_simple_enum_on_single_line = true`

```ini
csharp_place_simple_enum_on_single_line = true
```

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

    public enum Status
    {
        Active,
        Inactive,
        Pending,
    }
    ```
  </tab-item>

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

    public enum Status
    {
        Active,
        Inactive,
        Pending,
    }
    ```
  </tab-item>
</tab-set>


### `csharp_place_simple_enum_on_single_line = false`

```ini
csharp_place_simple_enum_on_single_line = false
```

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

    public enum Status
    {
        Active,
        Inactive,
        Pending,
    }
    ```
  </tab-item>

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

    public enum Status
    {
        Active,
        Inactive,
        Pending,
    }
    ```
  </tab-item>
</tab-set>