Loading

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

csharp_wrap_before_arrow_with_expressions = true
		
namespace N;

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

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

    public string Describe()
    {
        return $"Widget({Value})";
    }
}
		
namespace N;

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

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

    public string Describe()
    {
        return $"Widget({Value})";
    }
}
		
csharp_wrap_before_arrow_with_expressions = false
		
namespace N;

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

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

    public string Describe()
    {
        return $"Widget({Value})";
    }
}
		
namespace N;

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

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

    public string Describe()
    {
        return $"Widget({Value})";
    }
}