Editorconfig Guide.e

Indent case contents

EditorConfig key: csharp-indent-case-contents

Indent case contents

csharp-indent-case-contents

This option controls whether the statements inside a switch case should be indented relative to the case label.

Default value:

true

Possible values:

  • true
  • false

Examples

true
switch(x) {
  case 1:
    x++;
    break;
}
false
switch(x) {
  case 1:
  x++;
  break;
}