Generalized EditorConfig properties
Each of the EditorConfig properties listed in this topic allow setting multiple similar properties at once.
For example, there are a number of rather granular properties that let you configure whether to use space before parenthesis in if
, while
, catch
, and so on. If you do not need to configure each of these similar properties separately, you can use the corresponding Generalized property ([resharper_]space_after_keywords_in_control_flow_statements
in this case).
tip
ReSharper also supports most frequently used .NET-coding-convention EditorConfig properties.
[resharper_]brace_style
[resharper_]csharp_brace_style
, [resharper_]protobuf_brace_style
, [resharper_]js_brace_style
, [resharper_]css_brace_style
, [resharper_]cpp_brace_style
, [resharper_]shaderlab_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)pico
: Compact (Pico style)
[resharper_]int_align
[resharper_]csharp_int_align
Align similar code in columns - Simple methods, operators, delegates (C#)
Align similar code in columns - Multiline method signature (C#)
Align similar code in columns - Variables and local constants (C#)
Align similar code in columns - Other assignments and initializers (C#)
Align similar code in columns - Nested ternary operators (C#)
Align similar code in columns - Invocations of the same method (C#)
true | false
[resharper_]keep_existing_arrangement
[resharper_]csharp_keep_existing_arrangement
Arrangement of attributes - Keep existing arrangement of attributes (C#)
Arrangement of method signatures - Keep existing arrangement of parenthesis in declaration (C#)
Arrangement of declaration blocks - Keep existing arrangement of declaration blocks (C#)
Arrangement of enumerations - Keep existing arrangement of enumeration (C#)
Arrangement of embedded statements - Keep existing arrangement of embedded statements (C#)
Arrangement of embedded blocks - Keep existing arrangement of embedded blocks (C#)
Arrangement of switch expressions - Keep existing arrangement of switch expressions (C#)
Arrangement of property patterns - Keep existing arrangement of property patterns (C#)
Arrangement of initializers - Keep existing arrangement of initializers (C#)
Arrangement of invocations - Keep existing arrangement of parenthesis in invocation (C#)
true | false
[resharper_]place_simple_blocks_on_single_line
[resharper_]csharp_place_simple_blocks_on_single_line
Arrangement of declaration blocks - Place simple accessor on single line (C#)
Arrangement of declaration blocks - Place simple method on single line (C#)
Arrangement of enumerations - Place simple enumeration on single line (C#)
Arrangement of embedded blocks - Place a block with a single simple statement on the same line (C#)
Arrangement of embedded blocks - Place simple anonymous method on single line (C#)
true | false
[resharper_]place_simple_declaration_blocks_on_single_line
[resharper_]csharp_place_simple_declaration_blocks_on_single_line
true | false
[resharper_]place_attribute_on_same_line
[resharper_]csharp_place_attribute_on_same_line
Arrangement of attributes - Place type attribute on the same line (C#)
Arrangement of attributes - Place method attribute on the same line (C#)
Arrangement of attributes - Place property/indexer/event attribute on the same line (C#)
Arrangement of attributes - Place accessor attribute on the same line (C#)
Arrangement of attributes - Place field attribute on the same line (C#)
Arrangement of attributes - Place record field attribute on the same line (C#)
false
: Nevernever
: Neverif_owner_is_single_line
: If owner is singlelinetrue
: Alwaysalways
: Always
[resharper_]space_after_unary_operator
[resharper_]csharp_space_after_unary_operator
, [resharper_]vb_space_after_unary_operator
, [resharper_]cpp_space_after_unary_operator
true | false
[resharper_]space_after_comma
csharp_space_after_comma
, [resharper_]vb_space_after_comma
, [resharper_]js_space_after_comma
, [resharper_]css_space_after_comma
, [resharper_]cpp_space_after_comma
true | false
[resharper_]space_around_ternary_operator
[resharper_]csharp_space_around_ternary_operator
true | false
[resharper_]space_around_binary_operator
[resharper_]csharp_space_around_binary_operator
, [resharper_]vb_space_around_binary_operator
, [resharper_]js_space_around_binary_operator
, [resharper_]cpp_space_around_binary_operator
Around binary operators - Assignment operators (such as '=' and '+=') (C#)
Around binary operators - Relational operators (<,>,<=,>=) (C#)
Around binary operators - Multiplicative operators (*,/,%) (C#)
Around binary operators - Null coalescing operator (??) (C#)
Around operations - Assignment operators (such as '=' and '+=') (VB.NET)
Around operations - Relational operators (<,>,<=,>=) (VB.NET)
Around operations - Multiplicative operators (such as '*' and '/') (VB.NET)
true | false
[resharper_]space_around_member_access_operator
[resharper_]csharp_space_around_member_access_operator
, [resharper_]vb_space_around_member_access_operator
, [resharper_]js_space_around_member_access_operator
, [resharper_]cpp_space_around_member_access_operator
true | false
[resharper_]space_before_open_square_brackets
csharp_space_before_open_square_brackets
, [resharper_]js_space_before_open_square_brackets
, [resharper_]cpp_space_before_open_square_brackets
true | false
[resharper_]space_after_keywords_in_control_flow_statements
csharp_space_after_keywords_in_control_flow_statements
, [resharper_]js_space_after_keywords_in_control_flow_statements
, [resharper_]cpp_space_after_keywords_in_control_flow_statements
true | false
[resharper_]space_before_comma
csharp_space_before_comma
, [resharper_]vb_space_before_comma
, [resharper_]js_space_before_comma
, [resharper_]css_space_before_comma
, [resharper_]cpp_space_before_comma
true | false
[resharper_]space_between_method_call_name_and_opening_parenthesis
csharp_space_between_method_call_name_and_opening_parenthesis
, [resharper_]js_space_between_method_call_name_and_opening_parenthesis
, [resharper_]cpp_space_between_method_call_name_and_opening_parenthesis
true | false
[resharper_]space_between_method_declaration_name_and_open_parenthesis
csharp_space_between_method_declaration_name_and_open_parenthesis
, [resharper_]js_space_between_method_declaration_name_and_open_parenthesis
, [resharper_]cpp_space_between_method_declaration_name_and_open_parenthesis
true | false
[resharper_]space_between_square_brackets
csharp_space_between_square_brackets
, [resharper_]js_space_between_square_brackets
, [resharper_]cpp_space_between_square_brackets
true | false
[resharper_]space_between_parentheses_of_control_flow_statements
[resharper_]csharp_space_between_parentheses_of_control_flow_statements
, [resharper_]js_space_between_parentheses_of_control_flow_statements
, [resharper_]cpp_space_between_parentheses_of_control_flow_statements
true | false
[resharper_]configure_await_analysis_mode
disabled
library
ui