csharp_space_after_semicolon_in_for_statement

Space after a semicolon in a for statement.

Value Notes
true
false

Default: true

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

Ini
csharp_space_after_semicolon_in_for_statement = true
C#
namespace N;

public class Widget
{
    public int Sum(int n)
    {
        int total = 0;
        for (int i = 0;i < n;i++)
            total += i;
        return total;
    }
}
C#
namespace N;

public class Widget
{
    public int Sum(int n)
    {
        int total = 0;
        for (int i = 0; i < n; i++)
            total += i;
        return total;
    }
}
Ini
csharp_space_after_semicolon_in_for_statement = false
C#
namespace N;

public class Widget
{
    public int Sum(int n)
    {
        int total = 0;
        for (int i = 0; i < n; i++)
            total += i;
        return total;
    }
}
C#
namespace N;

public class Widget
{
    public int Sum(int n)
    {
        int total = 0;
        for (int i = 0;i < n;i++)
            total += i;
        return total;
    }
}