﻿---
title: csharp_space_before_colon_in_inheritance_clause
description: Space before the colon in a base list. Defaults to `true`
url: https://docs-v3-preview.elastic.dev/reference/spacing/csharp_space_before_colon_in_inheritance_clause
---

# csharp_space_before_colon_in_inheritance_clause
Space before the colon in a base list.

## Values


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

**Default:** `true`

### `csharp_space_before_colon_in_inheritance_clause = true`

```ini
csharp_space_before_colon_in_inheritance_clause = true
```

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

    public interface IWidget { }

    public class Widget: IWidget
    {
        public void Run() { }
    }
    ```
  </tab-item>

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

    public interface IWidget { }

    public class Widget : IWidget
    {
        public void Run() { }
    }
    ```
  </tab-item>
</tab-set>


### `csharp_space_before_colon_in_inheritance_clause = false`

```ini
csharp_space_before_colon_in_inheritance_clause = false
```

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

    public interface IWidget { }

    public class Widget : IWidget
    {
        public void Run() { }
    }
    ```
  </tab-item>

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

    public interface IWidget { }

    public class Widget: IWidget
    {
        public void Run() { }
    }
    ```
  </tab-item>
</tab-set>