csharp_space_before_semicolon_in_for_statement
Space before a semicolon in a for statement.
| Value | Notes |
|---|---|
true |
|
false |
Default: false
csharp_space_before_semicolon_in_for_statement = true
namespace N;
public class Widget
{
public int Sum(int n)
{
int total = 0;
for (int i = 0; i < n; i++)
total += i;
return total;
}
}
namespace N;
public class Widget
{
public int Sum(int n)
{
int total = 0;
for (int i = 0 ; i < n ; i++)
total += i;
return total;
}
}
csharp_space_before_semicolon_in_for_statement = false
namespace N;
public class Widget
{
public int Sum(int n)
{
int total = 0;
for (int i = 0 ;i < n ;i++)
total += i;
return total;
}
}
namespace N;
public class Widget
{
public int Sum(int n)
{
int total = 0;
for (int i = 0; i < n; i++)
total += i;
return total;
}
}