EditorConfig properties for C++: Braces Layout
tip
Formatting preferences listed on this page can be also configured visually, on the Code Editing | C++ | Formatting Style | Braces Layout page of ReSharper options Alt+R, O.
[resharper_]cpp_namespace_declaration_braces
, [resharper_]cpp_brace_style
, [resharper_]namespace_declaration_braces
, [resharper_]brace_style
end_of_line
: At the end of line (K&R style)end_of_line_no_space
: At the end of line (no space)next_line
: At next line (BSD style)next_line_shifted
: At next line indented (Whitesmiths style)next_line_shifted_2
: At next line indented 2 (GNU style)
end_of_line |
---|
|
end_of_line_no_space |
---|
|
next_line |
---|
|
next_line_shifted |
---|
|
next_line_shifted_2 |
---|
|
[resharper_]cpp_linkage_specification_braces
, [resharper_]cpp_brace_style
, [resharper_]linkage_specification_braces
, [resharper_]brace_style
end_of_line
: At the end of line (K&R style)end_of_line_no_space
: At the end of line (no space)next_line
: At next line (BSD style)next_line_shifted
: At next line indented (Whitesmiths style)next_line_shifted_2
: At next line indented 2 (GNU style)
end_of_line |
---|
|
end_of_line_no_space |
---|
|
next_line |
---|
|
next_line_shifted |
---|
|
next_line_shifted_2 |
---|
|
[resharper_]cpp_export_declaration_braces
, [resharper_]cpp_brace_style
, [resharper_]export_declaration_braces
, [resharper_]brace_style
end_of_line
: At the end of line (K&R style)end_of_line_no_space
: At the end of line (no space)next_line
: At next line (BSD style)next_line_shifted
: At next line indented (Whitesmiths style)next_line_shifted_2
: At next line indented 2 (GNU style)
end_of_line |
---|
|
end_of_line_no_space |
---|
|
next_line |
---|
|
next_line_shifted |
---|
|
next_line_shifted_2 |
---|
|
[resharper_]cpp_type_declaration_braces
, [resharper_]cpp_brace_style
, [resharper_]type_declaration_braces
, [resharper_]brace_style
end_of_line
: At the end of line (K&R style)end_of_line_no_space
: At the end of line (no space)next_line
: At next line (BSD style)next_line_shifted
: At next line indented (Whitesmiths style)next_line_shifted_2
: At next line indented 2 (GNU style)
end_of_line |
---|
|
end_of_line_no_space |
---|
|
next_line |
---|
|
next_line_shifted |
---|
|
next_line_shifted_2 |
---|
|
[resharper_]cpp_place_namespace_definitions_on_same_line
, [resharper_]place_namespace_definitions_on_same_line
true | false
true |
---|
|
false |
---|
|
[resharper_]cpp_invocable_declaration_braces
, [resharper_]cpp_brace_style
, [resharper_]invocable_declaration_braces
, [resharper_]brace_style
end_of_line
: At the end of line (K&R style)end_of_line_no_space
: At the end of line (no space)next_line
: At next line (BSD style)next_line_shifted
: At next line indented (Whitesmiths style)next_line_shifted_2
: At next line indented 2 (GNU style)
end_of_line |
---|
|
end_of_line_no_space |
---|
|
next_line |
---|
|
next_line_shifted |
---|
|
next_line_shifted_2 |
---|
|
[resharper_]cpp_anonymous_method_declaration_braces
, [resharper_]cpp_brace_style
, [resharper_]anonymous_method_declaration_braces
, [resharper_]brace_style
end_of_line
: At the end of line (K&R style)end_of_line_no_space
: At the end of line (no space)next_line
: At next line (BSD style)next_line_shifted
: At next line indented (Whitesmiths style)next_line_shifted_2
: At next line indented 2 (GNU style)
end_of_line |
---|
|
end_of_line_no_space |
---|
|
next_line |
---|
|
next_line_shifted |
---|
|
next_line_shifted_2 |
---|
|
[resharper_]cpp_case_block_braces
, [resharper_]cpp_brace_style
, [resharper_]case_block_braces
, [resharper_]brace_style
end_of_line
: At the end of line (K&R style)end_of_line_no_space
: At the end of line (no space)next_line
: At next line (BSD style)next_line_shifted
: At next line indented (Whitesmiths style)next_line_shifted_2
: At next line indented 2 (GNU style)
end_of_line |
---|
|
end_of_line_no_space |
---|
|
next_line |
---|
|
next_line_shifted |
---|
|
next_line_shifted_2 |
---|
|
[resharper_]cpp_requires_expression_braces
, [resharper_]requires_expression_braces
end_of_line
: At the end of line (K&R style)end_of_line_no_space
: At the end of line (no space)next_line
: At next line (BSD style)next_line_shifted
: At next line indented (Whitesmiths style)next_line_shifted_2
: At next line indented 2 (GNU style)
end_of_line |
---|
|
end_of_line_no_space |
---|
|
next_line |
---|
|
next_line_shifted |
---|
|
next_line_shifted_2 |
---|
|
[resharper_]cpp_other_braces
, [resharper_]cpp_brace_style
, [resharper_]other_braces
, [resharper_]brace_style
end_of_line
: At the end of line (K&R style)end_of_line_no_space
: At the end of line (no space)next_line
: At next line (BSD style)next_line_shifted
: At next line indented (Whitesmiths style)next_line_shifted_2
: At next line indented 2 (GNU style)
end_of_line |
---|
|
end_of_line_no_space |
---|
|
next_line |
---|
|
next_line_shifted |
---|
|
next_line_shifted_2 |
---|
|
[resharper_]cpp_expression_braces
, [resharper_]expression_braces
inside
: Inside parenthesis (BSD/K&R style)outside
: Parenthesis and inside equally (Whitesmiths style)outside_and_inside
: Parenthesis 1x, inside 2x (GNU style)none
: No indent
inside |
---|
|
outside |
---|
|
outside_and_inside |
---|
|
none |
---|
|
[resharper_]cpp_empty_block_style
, [resharper_]empty_block_style
multiline
: On different linestogether
: Place braces togethertogether_same_line
: Together on the same line
multiline |
---|
|
together |
---|
|
together_same_line |
---|
|
[resharper_]cpp_simple_block_style
, [resharper_]simple_block_style
do_not_change
: Do not changeon_single_line
: Force put on single lineline_break
: Force line breaks
do_not_change |
---|
|
on_single_line |
---|
|
line_break |
---|
|
[resharper_]cpp_macro_block_begin
, [resharper_]macro_block_begin
[resharper_]cpp_macro_block_end
, [resharper_]macro_block_end
[resharper_]cpp_allow_comment_after_lbrace
, [resharper_]allow_comment_after_lbrace
true | false
true |
---|
|
false |
---|
|