Simple case statement style

EditorConfig key: cpp-simple-case-statement-style

Simple case statement style

cpp-simple-case-statement-style

Layout for a single statement under a case label.

Default value:

do_not_change

Possible values:

  • do_not_change
  • on_single_line
  • line_break

Examples

do_not_change
case 1: a++; break;
on_single_line
case 1: a++; break;
line_break
case 1:
  a++;
  break;