Editorconfig Guide.e

Indent switch labels

EditorConfig key: csharp-indent-switch-labels

Indent switch labels

csharp-indent-switch-labels

This option controls whether case and default labels should be indented relative to the switch statement.

Default value:

true

Possible values:

  • true
  • false

Examples

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