csharp_wrap_parameters_style

chop_always gives every parameter its own line regardless of width; wrap_if_long packs parameters instead. wrap_if_long is only honoured in deterministic mode (max_line_length set) — chop_always and chop_if_long work in either.

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_parameters_style = chop_always
C#
namespace N;

public class Widget
{
    public void Move(int x, int y)
    {
        Console.WriteLine(x);
    }

    public void Register(
        string name,
        int value,
        bool active,
        string tag,
        string owner
    )
    {
        Console.WriteLine(name);
    }
}
C#
namespace N;

public class Widget
{
    public void Move(
        int x,
        int y
    )
    {
        Console.WriteLine(x);
    }

    public void Register(
        string name,
        int value,
        bool active,
        string tag,
        string owner
    )
    {
        Console.WriteLine(name);
    }
}
Ini
max_line_length = 80
csharp_wrap_parameters_style = chop_if_long
C#
namespace N;

public class Widget
{
    public void Move(int x, int y)
    {
        Console.WriteLine(x);
    }

    public void Register(string name, int value, bool active, string tag, string owner)
    {
        Console.WriteLine(name);
    }
}
C#
namespace N;

public class Widget
{
    public void Move(int x, int y)
    {
        Console.WriteLine(x);
    }

    public void Register(
        string name,
        int value,
        bool active,
        string tag,
        string owner
    )
    {
        Console.WriteLine(name);
    }
}
Ini
max_line_length = 80
csharp_wrap_parameters_style = wrap_if_long
C#
namespace N;

public class Widget
{
    public void Move(int x, int y)
    {
        Console.WriteLine(x);
    }

    public void Register(
        string name,
        int value,
        bool active,
        string tag,
        string owner
    )
    {
        Console.WriteLine(name);
    }
}
C#
namespace N;

public class Widget
{
    public void Move(int x, int y)
    {
        Console.WriteLine(x);
    }

    public void Register(
        string name, int value, bool active, string tag, string owner
    )
    {
        Console.WriteLine(name);
    }
}