csharp_place_simple_declaration_blocks_on_single_line

Collapse a method, constructor, operator, destructor, local function or accessor body onto one line when it holds a single statement with no comment and the result fits.

Value Notes
true
false

Default: false

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

csharp_place_simple_declaration_blocks_on_single_line = true
		
namespace N;

public class Widget
{
    public int Value { get; set; }

    public int Double()
    {
        return Value * 2;
    }
}
		
namespace N;

public class Widget
{
    public int Value { get; set; }

    public int Double() { return Value * 2; }
}
		
csharp_place_simple_declaration_blocks_on_single_line = false
		
namespace N;

public class Widget
{
    public int Value { get; set; }

    public int Double()
    {
        return Value * 2;
    }
}
		
namespace N;

public class Widget
{
    public int Value { get; set; }

    public int Double()
    {
        return Value * 2;
    }
}