﻿---
title: csharp_place_constructor_initializer_on_same_line
description: Keep : base(...) on the constructor's line rather than giving it its own. Defaults to `true`
url: https://docs-v3-preview.elastic.dev/reference/wrapping/csharp_place_constructor_initializer_on_same_line
---

# csharp_place_constructor_initializer_on_same_line
Keep : base(...) on the constructor's line rather than giving it its own.

## Values


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

**Default:** `true`

### `csharp_place_constructor_initializer_on_same_line = true`

```ini
csharp_place_constructor_initializer_on_same_line = true
```

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

    public class Base
    {
        public Base(string name) { }
    }

    public class Widget : Base
    {
        public Widget(string name, int value) : base(name)
        {
            Value = value;
        }

        public int Value { get; }
    }
    ```
  </tab-item>

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

    public class Base
    {
        public Base(string name) { }
    }

    public class Widget : Base
    {
        public Widget(string name, int value) : base(name)
        {
            Value = value;
        }

        public int Value { get; }
    }
    ```
  </tab-item>
</tab-set>


### `csharp_place_constructor_initializer_on_same_line = false`

```ini
csharp_place_constructor_initializer_on_same_line = false
```

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

    public class Base
    {
        public Base(string name) { }
    }

    public class Widget : Base
    {
        public Widget(string name, int value) : base(name)
        {
            Value = value;
        }

        public int Value { get; }
    }
    ```
  </tab-item>

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

    public class Base
    {
        public Base(string name) { }
    }

    public class Widget : Base
    {
        public Widget(string name, int value)
    : base(name)
        {
            Value = value;
        }

        public int Value { get; }
    }
    ```
  </tab-item>
</tab-set>