﻿---
title: csharp_space_between_empty_square_brackets
description: Space inside empty square brackets []. Defaults to `false`
url: https://docs-v3-preview.elastic.dev/reference/spacing/csharp_space_between_empty_square_brackets
---

# csharp_space_between_empty_square_brackets
Space inside empty square brackets [].

## Values


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

**Default:** `false`

### `csharp_space_between_empty_square_brackets = true`

```ini
csharp_space_between_empty_square_brackets = true
```

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

    public class Widget
    {
        private int[] _data = new int[] { 1, 2, 3 };
    }
    ```
  </tab-item>

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

    public class Widget
    {
        private int[ ] _data = new int[ ] { 1, 2, 3 };
    }
    ```
  </tab-item>
</tab-set>


### `csharp_space_between_empty_square_brackets = false`

```ini
csharp_space_between_empty_square_brackets = false
```

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

    public class Widget
    {
        private int[ ] _data = new int[ ] { 1, 2, 3 };
    }
    ```
  </tab-item>

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

    public class Widget
    {
        private int[] _data = new int[] { 1, 2, 3 };
    }
    ```
  </tab-item>
</tab-set>