Braces layout for blocks under case labels

EditorConfig key: cpp-case-block-braces

Braces layout for blocks under case labels

cpp-case-block-braces

Placement of the opening brace for compound blocks under a case label.

Default value:

unset

Possible values:

  • unset
  • end_of_line
  • end_of_line_no_space
  • next_line
  • next_line_shifted
  • next_line_shifted_2

Examples

unset
end_of_line
case 1: {
  break;
}
end_of_line_no_space
case 1:{
  break;
}
next_line
case 1:
{
  break;
}
next_line_shifted
case 1:
  {
  break;
  }
next_line_shifted_2
case 1:
  {
    break;
  }