Loading

csharp_new_line_before_members_in_object_initializers

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

Value Notes
true
false

Default: false

csharp_new_line_before_members_in_object_initializers = true
		
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 };
}
		
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 };
}
		
csharp_new_line_before_members_in_object_initializers = false
		
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 };
}
		
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 };
}