Loading

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

csharp_wrap_arguments_style = chop_always
		
namespace N;

public class Widget
{
    public void Register(string name, int value, bool active, string tag)
    {
    }

    public void Run()
    {
        Register("curb", 42, true, "formatter");
    }
}
		
namespace N;

public class Widget
{
    public void Register(
        string name,
        int value,
        bool active,
        string tag
    )
    { }

    public void Run()
    {
        Register(
            "curb",
            42,
            true,
            "formatter"
        );
    }
}
		
csharp_wrap_arguments_style = chop_if_long
		
namespace N;

public class Widget
{
    public void Register(string name, int value, bool active, string tag)
    {
    }

    public void Run()
    {
        Register("curb", 42, true, "formatter");
    }
}
		
namespace N;

public class Widget
{
    public void Register(
        string name,
        int value,
        bool active,
        string tag
    )
    { }

    public void Run()
    {
        Register(
            "curb",
            42,
            true,
            "formatter"
        );
    }
}
		
csharp_wrap_arguments_style = wrap_if_long
		
namespace N;

public class Widget
{
    public void Register(string name, int value, bool active, string tag)
    {
    }

    public void Run()
    {
        Register("curb", 42, true, "formatter");
    }
}
		
namespace N;

public class Widget
{
    public void Register(
        string name,
        int value,
        bool active,
        string tag
    )
    { }

    public void Run()
    {
        Register(
            "curb", 42, true,
            "formatter"
        );
    }
}