csharp_wrap_arguments_style
chop_always gives every argument its own line; wrap_if_long packs arguments instead. Only honoured in deterministic mode (max_line_length set).
| Value | Notes |
|---|---|
chop_always |
|
chop_if_long |
|
wrap_if_long |
Default: chop_if_long
No known case where Curb's output is not a fixed point of dotnet format — see conformance.
max_line_length = 80
csharp_wrap_arguments_style = chop_always
namespace N;
public class Widget
{
public void Run()
{
Register("curb", 42, true, "formatter");
Register(
"a widget with a much longer name",
4200,
false,
"a formatter tag"
);
}
private void Register(string name, int value, bool active, string tag)
{
Console.WriteLine(name);
}
}
namespace N;
public class Widget
{
public void Run()
{
Register(
"curb",
42,
true,
"formatter"
);
Register(
"a widget with a much longer name",
4200,
false,
"a formatter tag"
);
}
private void Register(string name, int value, bool active, string tag)
{
Console.WriteLine(
name
);
}
}
max_line_length = 80
csharp_wrap_arguments_style = chop_if_long
namespace N;
public class Widget
{
public void Run()
{
Register("curb", 42, true, "formatter");
Register("a widget with a much longer name", 4200, false, "a formatter tag");
}
private void Register(string name, int value, bool active, string tag)
{
Console.WriteLine(name);
}
}
namespace N;
public class Widget
{
public void Run()
{
Register("curb", 42, true, "formatter");
Register(
"a widget with a much longer name",
4200,
false,
"a formatter tag"
);
}
private void Register(string name, int value, bool active, string tag)
{
Console.WriteLine(name);
}
}
max_line_length = 80
csharp_wrap_arguments_style = wrap_if_long
namespace N;
public class Widget
{
public void Run()
{
Register("curb", 42, true, "formatter");
Register(
"a widget with a much longer name",
4200,
false,
"a formatter tag"
);
}
private void Register(string name, int value, bool active, string tag)
{
Console.WriteLine(name);
}
}
namespace N;
public class Widget
{
public void Run()
{
Register("curb", 42, true, "formatter");
Register(
"a widget with a much longer name", 4200, false, "a formatter tag"
);
}
private void Register(string name, int value, bool active, string tag)
{
Console.WriteLine(name);
}
}