csharp_wrap_before_arrow_with_expressions

When an expression body wraps, put => at the start of the new line.

Value Notes
true
false

Default: false

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

Ini
max_line_length = 80
csharp_wrap_before_arrow_with_expressions = true
C#
namespace N;

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

    public string Describe() =>
        $"Widget {Value} of {Value * 2}, built by the widget factory";
}
C#
namespace N;

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

    public string Describe()
        => $"Widget {Value} of {Value * 2}, built by the widget factory";
}
Ini
max_line_length = 80
csharp_wrap_before_arrow_with_expressions = false
C#
namespace N;

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

    public string Describe() => $"Widget {Value} of {Value * 2}, built by the widget factory";
}
C#
namespace N;

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

    public string Describe() =>
        $"Widget {Value} of {Value * 2}, built by the widget factory";
}