Editorconfig Guide.e

Space after keywords in control flow statements

EditorConfig key: csharp-space-after-keywords-in-control-flow-statements

Space after keywords in control flow statements

csharp-space-after-keywords-in-control-flow-statements

This option controls whether a space should follow control flow keywords such as if, for, while before their opening parenthesis.

Default value:

true

Possible values:

  • true
  • false

Examples

true
if (true) {
  x++;
}
false
if(true) {
  x++;
}