csharp_preserve_single_line_blocks
Allow a block the author wrote on one line to stay on one line.
| Value | Notes |
|---|---|
true |
|
false |
Default: true
csharp_preserve_single_line_blocks = true
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_preserve_single_line_blocks = false
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()
{
}
}