JetBrains Rider 2021.2 Help

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).

Braces layout style

Property names:

[resharper_]brace_style

Language-specific aliases:

[resharper_]csharp_brace_style, [resharper_]protobuf_brace_style, [resharper_]js_brace_style, [resharper_]css_brace_style, [resharper_]cpp_brace_style

Allows setting the following properties:

Possible values:

  • end_of_line: At end of line (K&R style)

  • end_of_line_no_space: At 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)

Align similar code in columns

Property names:

[resharper_]int_align

Language-specific aliases:

[resharper_]csharp_int_align

Allows setting the following properties:

Possible values:

true | false

Keep existing code arrangements (single line/multi line)

Property names:

[resharper_]keep_existing_arrangement

Language-specific aliases:

[resharper_]csharp_keep_existing_arrangement

Allows setting the following properties:

Possible values:

true | false

Place simple blocks on single line

Property names:

[resharper_]place_simple_blocks_on_single_line

Language-specific aliases:

[resharper_]csharp_place_simple_blocks_on_single_line

Allows setting the following properties:

Possible values:

true | false

Place blocks from simple type members on single line

Property names:

[resharper_]place_simple_declaration_blocks_on_single_line

Language-specific aliases:

[resharper_]csharp_place_simple_declaration_blocks_on_single_line

Allows setting the following properties:

Possible values:

true | false

Place simple attribute on the same line with the owner

Property names:

[resharper_]place_attribute_on_same_line

Language-specific aliases:

[resharper_]csharp_place_attribute_on_same_line

Allows setting the following properties:

Possible values:

  • false: Never

  • never: Never

  • if_owner_is_single_line: If owner is singleline

  • true: Always

  • always: Always

Space after unary operators (!, -, ~,...)

Property names:

[resharper_]space_after_unary_operator

Language-specific aliases:

[resharper_]csharp_space_after_unary_operator, [resharper_]vb_space_after_unary_operator

Allows setting the following properties:

Possible values:

true | false

Space after comma

Property names:

[resharper_]space_after_comma

Language-specific aliases:

csharp_space_after_comma, [resharper_]vb_space_after_comma, [resharper_]js_space_after_comma, [resharper_]css_space_after_comma, [resharper_]cpp_space_after_comma

Allows setting the following properties:

Possible values:

true | false

Space around ternary operators (?, :)

Property names:

[resharper_]space_around_ternary_operator

Language-specific aliases:

[resharper_]csharp_space_around_ternary_operator

Allows setting the following properties:

Possible values:

true | false

Space around binary operators (+, ||, =, ...)

Property names:

[resharper_]space_around_binary_operator

Language-specific aliases:

[resharper_]csharp_space_around_binary_operator, [resharper_]vb_space_around_binary_operator, [resharper_]js_space_around_binary_operator, [resharper_]cpp_space_around_binary_operator

Allows setting the following properties:

Possible values:

true | false

Space around member access operators (., ->, ...)

Property names:

[resharper_]space_around_member_access_operator

Language-specific aliases:

[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

Allows setting the following properties:

Possible values:

true | false

Space before brackets

Property names:

[resharper_]space_before_open_square_brackets

Language-specific aliases:

csharp_space_before_open_square_brackets, [resharper_]js_space_before_open_square_brackets, [resharper_]cpp_space_before_open_square_brackets

Allows setting the following properties:

Possible values:

true | false

Space before parenthesis of control flow statements

Property names:

[resharper_]space_after_keywords_in_control_flow_statements

Language-specific aliases:

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

Allows setting the following properties:

Possible values:

true | false

Space before comma

Property names:

[resharper_]space_before_comma

Language-specific aliases:

csharp_space_before_comma, [resharper_]vb_space_before_comma, [resharper_]js_space_before_comma, [resharper_]css_space_before_comma, [resharper_]cpp_space_before_comma

Allows setting the following properties:

Possible values:

true | false

Space before method call parenthesis

Property names:

[resharper_]space_between_method_call_name_and_opening_parenthesis

Language-specific aliases:

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

Allows setting the following properties:

Possible values:

true | false

Space before method declaration parenthesis

Property names:

[resharper_]space_between_method_declaration_name_and_open_parenthesis

Language-specific aliases:

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

Allows setting the following properties:

Possible values:

true | false

Space within brackets

Property names:

[resharper_]space_between_square_brackets

Language-specific aliases:

csharp_space_between_square_brackets, [resharper_]js_space_between_square_brackets, [resharper_]cpp_space_between_square_brackets

Allows setting the following properties:

Possible values:

true | false

Space within parenthesis of control flow statements

Property names:

[resharper_]space_between_parentheses_of_control_flow_statements

Language-specific aliases:

[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

Allows setting the following properties:

Possible values:

true | false

ConfigureAwait analysis mode

Property names:

[resharper_]configure_await_analysis_mode

Language-specific aliases:

Allows setting the following properties:

    Possible values:

    • disabled

    • library

    • ui

    Last modified: 21 October 2021