csharp_space_between_parentheses

Space just inside parentheses for specific constructs.

Value Notes
false
control_flow_statements
type_casts
expressions

Default: false

No known case where Curb's output is not a fixed point of dotnet format — see conformance.

Ini
csharp_space_between_parentheses = false
C#
namespace N;

public class Widget
{
    public string Classify(int n)
    {
        if ( n > 0 )
            return "positive";
        else if ( n < 0 )
            return "negative";
        return "zero";
    }
}
C#
namespace N;

public class Widget
{
    public string Classify(int n)
    {
        if (n > 0)
            return "positive";
        else if (n < 0)
            return "negative";
        return "zero";
    }
}
Ini
csharp_space_between_parentheses = control_flow_statements
C#
namespace N;

public class Widget
{
    public string Classify(int n)
    {
        if (n > 0)
            return "positive";
        else if (n < 0)
            return "negative";
        return "zero";
    }
}
C#
namespace N;

public class Widget
{
    public string Classify(int n)
    {
        if ( n > 0 )
            return "positive";
        else if ( n < 0 )
            return "negative";
        return "zero";
    }
}
Ini
csharp_space_between_parentheses = type_casts
C#
namespace N;

public class Widget
{
    public string Classify(int n)
    {
        if (n > 0)
            return "positive";
        else if (n < 0)
            return "negative";
        return "zero";
    }
}
C#
namespace N;

public class Widget
{
    public string Classify(int n)
    {
        if (n > 0)
            return "positive";
        else if (n < 0)
            return "negative";
        return "zero";
    }
}
Ini
csharp_space_between_parentheses = expressions
C#
namespace N;

public class Widget
{
    public string Classify(int n)
    {
        if (n > 0)
            return "positive";
        else if (n < 0)
            return "negative";
        return "zero";
    }
}
C#
namespace N;

public class Widget
{
    public string Classify(int n)
    {
        if (n > 0)
            return "positive";
        else if (n < 0)
            return "negative";
        return "zero";
    }
}