Editorconfig Guide.e

New line before else

EditorConfig key: csharp-new-line-before-else

New line before else

csharp-new-line-before-else

This option controls whether an else clause should start on a new line.

Default value:

true

Possible values:

  • true
  • false

Examples

true
if(cond) {
  x++;
}
else {
  x--;
}
false
if(cond) {
  x++;
} else {
  x--;
}