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.

Ini
max_line_length = 80
csharp_wrap_arguments_style = chop_always
C#
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);
    }
}
C#
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
        );
    }
}
Ini
max_line_length = 80
csharp_wrap_arguments_style = chop_if_long
C#
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);
    }
}
C#
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);
    }
}
Ini
max_line_length = 80
csharp_wrap_arguments_style = wrap_if_long
C#
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);
    }
}
C#
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);
    }
}