﻿---
title: csharp_space_around_declaration_statements
description: Extra spaces in declaration statements. false normalises; ignore leaves them alone. Defaults to `false`
url: https://docs-v3-preview.elastic.dev/reference/spacing/csharp_space_around_declaration_statements
---

# csharp_space_around_declaration_statements
Extra spaces in declaration statements. false normalises; ignore leaves them alone.

## Values


| Value    | Notes |
|----------|-------|
| `false`  |       |
| `ignore` |       |

**Default:** `false`

### `csharp_space_around_declaration_statements = false`

```ini
csharp_space_around_declaration_statements = false
```

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

    public class Widget
    {
        public void Run()
        {
            int  x=1;
            string  name="curb";
            bool  active=true;
        }
    }
    ```
  </tab-item>

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

    public class Widget
    {
        public void Run()
        {
            int x = 1;
            string name = "curb";
            bool active = true;
        }
    }
    ```
  </tab-item>
</tab-set>


### `csharp_space_around_declaration_statements = ignore`

```ini
csharp_space_around_declaration_statements = ignore
```

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

    public class Widget
    {
        public void Run()
        {
            int x = 1;
            string name = "curb";
            bool active = true;
        }
    }
    ```
  </tab-item>

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

    public class Widget
    {
        public void Run()
        {
            int  x=1;
            string  name="curb";
            bool  active=true;
        }
    }
    ```
  </tab-item>
</tab-set>