EditorConfig properties for Protobuf: Formatting Style
tip
Formatting preferences listed on this page can be also configured visually, on the Code Editing | Protobuf | Formatting Style | Formatting Style page of ReSharper options Alt+R, O.
indent_style
, [resharper_]protobuf_indent_style
tab
: Tabspace
: Spaces
tab |
---|
|
space |
---|
|
indent_size
, [resharper_]protobuf_indent_size
an integer
value: 0 |
---|
|
value: 1 |
---|
|
value: 2 |
---|
|
tab_width
, [resharper_]protobuf_tab_width
an integer
value: 0 |
---|
|
value: 1 |
---|
|
value: 2 |
---|
|
[resharper_]protobuf_alignment_tab_fill_style
, [resharper_]alignment_tab_fill_style
use_spaces
: Use spaces (looks aligned on any tab size)use_tabs_only
: Only use tabs (inaccurate)optimal_fill
: Mix tabs and spaces for optimal fill
[resharper_]protobuf_allow_far_alignment
, [resharper_]allow_far_alignment
Allow alignment even if construct is located too far to the right, more than 2/3 of `Hard wrap at` limit
true | false
[resharper_]protobuf_space_comma
, [resharper_]space_comma
true | false
true |
---|
|
false |
---|
|
[resharper_]protobuf_space_equals
, [resharper_]space_equals
true | false
true |
---|
|
false |
---|
|
[resharper_]protobuf_space_colon_before
, [resharper_]space_colon_before
true | false
true |
---|
|
false |
---|
|
[resharper_]protobuf_space_colon_after
, [resharper_]space_colon_after
true | false
true |
---|
|
false |
---|
|
[resharper_]protobuf_not_options_braces
, [resharper_]protobuf_brace_style
, [resharper_]not_options_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_]protobuf_options_braces
, [resharper_]protobuf_brace_style
, [resharper_]options_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_]protobuf_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 |
---|
|
max_line_length
, [resharper_]protobuf_max_line_length
an integer
[resharper_]protobuf_options_braces_pointy
, [resharper_]options_braces_pointy
true | false
true |
---|
|
false |
---|
|