Loading

csharp_space_after_keywords_in_control_flow_statements

Space between a control-flow keyword and its opening parenthesis.

Value Notes
true
false

Default: true

csharp_space_after_keywords_in_control_flow_statements = true
		
namespace N;

public class Widget
{
    public int Count(int n)
    {
        int total = 0;
        for(int i = 0; i < n; i++)
        {
            if(i % 2 == 0)
                total++;
        }
        while(total > 100)
            total /= 2;
        return total;
    }
}
		
namespace N;

public class Widget
{
    public int Count(int n)
    {
        int total = 0;
        for (int i = 0; i < n; i++)
        {
            if (i % 2 == 0)
                total++;
        }
        while (total > 100)
            total /= 2;
        return total;
    }
}
		
csharp_space_after_keywords_in_control_flow_statements = false
		
namespace N;

public class Widget
{
    public int Count(int n)
    {
        int total = 0;
        for (int i = 0; i < n; i++)
        {
            if (i % 2 == 0)
                total++;
        }
        while (total > 100)
            total /= 2;
        return total;
    }
}
		
namespace N;

public class Widget
{
    public int Count(int n)
    {
        int total = 0;
        for(int i = 0; i < n; i++)
        {
            if(i % 2 == 0)
                total++;
        }
        while(total > 100)
            total /= 2;
        return total;
    }
}