csharp_new_line_before_members_in_object_initializers

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

Value Notes
true
false Leaves the members where they were written. It doesn't join them onto one line, and neither does dotnet format.

Default: true

No known case where Curb's output is not a fixed point of dotnet format — see conformance.

Ini
csharp_new_line_before_members_in_object_initializers = true
C#
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,
    };
}
C#
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,
    };
}
Ini
csharp_new_line_before_members_in_object_initializers = false
C#
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,
    };
}
C#
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,
    };
}