Indent switch labels

EditorConfig key: cpp-indent-switch-labels

Indent switch labels

cpp-indent-switch-labels

If true, case labels are indented inside the switch block.

Default value:

true

Possible values:

  • true
  • false

Examples

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