csharp_wrap_before_first_method_call
When a chain breaks, break before the first call too, leaving the receiver on its own line.
| Value | Notes |
|---|---|
true |
What Curb does with the key unset: once a chain breaks, its receiver gets a line of its own. |
false |
Default: (not set)
No known case where Curb's output is not a fixed point of dotnet format — see conformance.
max_line_length = 80
csharp_wrap_before_first_method_call = true
using System.Text;
namespace N;
public class Widget
{
public string Build()
{
return new StringBuilder()
.Append("Hello")
.Append(", ")
.Append("World")
.Append("!")
.ToString();
}
}
using System.Text;
namespace N;
public class Widget
{
public string Build()
{
return new StringBuilder()
.Append("Hello")
.Append(", ")
.Append("World")
.Append("!")
.ToString();
}
}
max_line_length = 80
csharp_wrap_before_first_method_call = false
using System.Text;
namespace N;
public class Widget
{
public string Build()
{
return new StringBuilder()
.Append("Hello")
.Append(", ")
.Append("World")
.Append("!")
.ToString();
}
}
using System.Text;
namespace N;
public class Widget
{
public string Build()
{
return new StringBuilder().Append("Hello")
.Append(", ")
.Append("World")
.Append("!")
.ToString();
}
}