﻿---
title: csharp_new_line_before_members_in_object_initializers
description: Put each member of an object initializer on its own line. Defaults to `false`
url: https://docs-v3-preview.elastic.dev/reference/new-lines/csharp_new_line_before_members_in_object_initializers
---

# csharp_new_line_before_members_in_object_initializers
Put each member of an object initializer on its own line.

## Values


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

**Default:** `false`

### `csharp_new_line_before_members_in_object_initializers = true`

```ini
csharp_new_line_before_members_in_object_initializers = true
```

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

    public class Point { public int X; public int Y; public int Z; }

    public class Widget
    {
        public Point Make() => new Point { X = 1, Y = 2, Z = 3 };
    }
    ```
  </tab-item>

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

    public class Point { public int X; public int Y; public int Z; }

    public class Widget
    {
        public Point Make() => new Point { X = 1, Y = 2, Z = 3 };
    }
    ```
  </tab-item>
</tab-set>


### `csharp_new_line_before_members_in_object_initializers = false`

```ini
csharp_new_line_before_members_in_object_initializers = false
```

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

    public class Point { public int X; public int Y; public int Z; }

    public class Widget
    {
        public Point Make() => new Point { X = 1, Y = 2, Z = 3 };
    }
    ```
  </tab-item>

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

    public class Point { public int X; public int Y; public int Z; }

    public class Widget
    {
        public Point Make() => new Point { X = 1, Y = 2, Z = 3 };
    }
    ```
  </tab-item>
</tab-set>