Loading

csharp_empty_block_style

How an empty method, constructor, accessor or control-flow body is laid out. together_same_line keeps { } on the signature's line.

Value Notes
multiline
together
together_same_line

Default: (not set)

csharp_empty_block_style = multiline
		
namespace N;

public class Widget
{
    public int X { get; set; }
    public string Name { get; set; } = "";
    public void Empty() { }
}
		
namespace N;

public class Widget
{
    public int X { get; set; }
    public string Name { get; set; } = "";
    public void Empty()
    {
    }
}
		
csharp_empty_block_style = together
		
namespace N;

public class Widget
{
    public int X { get; set; }
    public string Name { get; set; } = "";
    public void Empty() { }
}
		
namespace N;

public class Widget
{
    public int X { get; set; }
    public string Name { get; set; } = "";
    public void Empty()
    { }
}
		
csharp_empty_block_style = together_same_line
		
namespace N;

public class Widget
{
    public int X { get; set; }
    public string Name { get; set; } = "";
    public void Empty() { }
}
		
namespace N;

public class Widget
{
    public int X { get; set; }
    public string Name { get; set; } = "";
    public void Empty() { }
}