C# - Line Breaks
General
Keep existing line breaks
Property names:
[resharper_]csharp_keep_user_linebreaks
, [resharper_]csharp_keep_existing_arrangement
, [resharper_]csharp_keep_existing_linebreaks
, [resharper_]keep_user_linebreaks
, [resharper_]keep_existing_arrangement
, [resharper_]keep_existing_linebreaks
Possible values:
true | false
Examples:
Before formatting | After formatting, true |
---|---|
|
|
Before formatting | After formatting, false |
---|---|
|
|
Hard wrap at
Property names:
max_line_length
, [resharper_]csharp_max_line_length
This option (similarly to the Editorconfig's 'max_line_length') defines the desired maximum number of characters in each line. It is applied during code reformatting if 'Wrap long lines' is enabled. Line breaks are added, if possible, at the positions not exceeding the specified value, according to the language syntax and other line wrapping settings.
Possible values:
an integer
Prefer wrap before ","
Property names:
[resharper_]csharp_wrap_before_comma
, [resharper_]wrap_before_comma
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Prefer wrap before "="
Property names:
[resharper_]csharp_wrap_before_eq
, [resharper_]wrap_before_eq
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Special "else if" treatment
Property names:
[resharper_]csharp_special_else_if_treatment
, [resharper_]special_else_if_treatment
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Line feed at end of file
Property names:
insert_final_newline
, [resharper_]csharp_insert_final_newline
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Arrangement of attributes
Place attribute section list on separate line if it is longer than
Property names:
[resharper_]csharp_max_attribute_length_for_same_line
, [resharper_]max_attribute_length_for_same_line
Attribute sections longer than specified values would be placed on separate line
Possible values:
an integer
Keep existing arrangement of attributes
Property names:
[resharper_]csharp_keep_existing_attribute_arrangement
, [resharper_]csharp_keep_existing_arrangement
, [resharper_]keep_existing_attribute_arrangement
, [resharper_]keep_existing_arrangement
Possible values:
true | false
Examples:
Before formatting | After formatting, true |
---|---|
|
|
Before formatting | After formatting, false |
---|---|
|
|
Place type attribute on the same line
Property names:
[resharper_]csharp_place_type_attribute_on_same_line
, [resharper_]csharp_place_attribute_on_same_line
, [resharper_]place_type_attribute_on_same_line
, [resharper_]place_attribute_on_same_line
Possible values:
false
: Nevernever
: Neverif_owner_is_single_line
: If owner is singlelinetrue
: Alwaysalways
: Always
Examples:
false |
---|
|
never |
---|
|
if_owner_is_single_line |
---|
|
true |
---|
|
always |
---|
|
Place method attribute on the same line
Property names:
[resharper_]csharp_place_method_attribute_on_same_line
, [resharper_]csharp_place_attribute_on_same_line
, [resharper_]place_method_attribute_on_same_line
, [resharper_]place_attribute_on_same_line
Possible values:
false
: Nevernever
: Neverif_owner_is_single_line
: If owner is singlelinetrue
: Alwaysalways
: Always
Examples:
false |
---|
|
never |
---|
|
if_owner_is_single_line |
---|
|
true |
---|
|
always |
---|
|
Place property/indexer/event attribute on the same line
Property names:
[resharper_]csharp_place_accessorholder_attribute_on_same_line
, [resharper_]csharp_place_attribute_on_same_line
, [resharper_]place_accessorholder_attribute_on_same_line
, [resharper_]place_attribute_on_same_line
Possible values:
false
: Nevernever
: Neverif_owner_is_single_line
: If owner is singlelinetrue
: Alwaysalways
: Always
Examples:
false |
---|
|
never |
---|
|
if_owner_is_single_line |
---|
|
true |
---|
|
always |
---|
|
Place accessor attribute on the same line
Property names:
[resharper_]csharp_place_accessor_attribute_on_same_line
, [resharper_]csharp_place_attribute_on_same_line
, [resharper_]place_accessor_attribute_on_same_line
, [resharper_]place_attribute_on_same_line
Possible values:
false
: Nevernever
: Neverif_owner_is_single_line
: If owner is singlelinetrue
: Alwaysalways
: Always
Examples:
false |
---|
|
never |
---|
|
if_owner_is_single_line |
---|
|
true |
---|
|
always |
---|
|
Place field attribute on the same line
Property names:
[resharper_]csharp_place_field_attribute_on_same_line
, [resharper_]csharp_place_attribute_on_same_line
, [resharper_]place_field_attribute_on_same_line
, [resharper_]place_attribute_on_same_line
Possible values:
false
: Nevernever
: Neverif_owner_is_single_line
: If owner is singlelinetrue
: Alwaysalways
: Always
Examples:
false |
---|
|
never |
---|
|
if_owner_is_single_line |
---|
|
true |
---|
|
always |
---|
|
Arrangement of method signatures
Wrap formal parameters
Property names:
[resharper_]csharp_wrap_parameters_style
, [resharper_]wrap_parameters_style
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multilinechop_always
: Chop always
Examples:
wrap_if_long |
---|
|
chop_if_long |
---|
|
chop_always |
---|
|
Max formal parameters on a single line
Property names:
[resharper_]csharp_max_formal_parameters_on_line
, [resharper_]max_formal_parameters_on_line
Possible values:
an integer
Examples:
value: 0 |
---|
|
value: 1 |
---|
|
value: 2 |
---|
|
Keep existing arrangement of parenthesis in declaration
Property names:
[resharper_]csharp_keep_existing_declaration_parens_arrangement
, [resharper_]csharp_keep_existing_arrangement
, [resharper_]keep_existing_declaration_parens_arrangement
, [resharper_]keep_existing_arrangement
Possible values:
true | false
Examples:
Before formatting | After formatting, true |
---|---|
|
|
Before formatting | After formatting, false |
---|---|
|
|
Prefer wrap before "(" in declaration
Property names:
[resharper_]csharp_wrap_before_declaration_lpar
, [resharper_]wrap_before_declaration_lpar
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Prefer wrap after "(" in declaration
Property names:
[resharper_]csharp_wrap_after_declaration_lpar
, [resharper_]wrap_after_declaration_lpar
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Prefer wrap before ")" in declaration
Property names:
[resharper_]csharp_wrap_before_declaration_rpar
, [resharper_]wrap_before_declaration_rpar
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Allow constructor initializer on the same line
Property names:
[resharper_]csharp_place_constructor_initializer_on_same_line
, [resharper_]place_constructor_initializer_on_same_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Arrangement of expression bodied members
Keep existing arrangement of expression bodied members
Property names:
[resharper_]csharp_keep_existing_expr_member_arrangement
, [resharper_]csharp_keep_existing_arrangement
, [resharper_]keep_existing_expr_member_arrangement
, [resharper_]keep_existing_arrangement
Possible values:
true | false
Examples:
Before formatting | After formatting, true |
---|---|
|
|
Before formatting | After formatting, false |
---|---|
|
|
Place method expression body on the same line
Property names:
[resharper_]csharp_place_expr_method_on_single_line
, [resharper_]place_expr_method_on_single_line
Possible values:
false
: Nevernever
: Neverif_owner_is_single_line
: If owner is singlelinetrue
: Alwaysalways
: Always
Examples:
false |
---|
|
never |
---|
|
if_owner_is_single_line |
---|
|
true |
---|
|
always |
---|
|
Place property expression body on the same line
Property names:
[resharper_]csharp_place_expr_property_on_single_line
, [resharper_]place_expr_property_on_single_line
Possible values:
false
: Nevernever
: Neverif_owner_is_single_line
: If owner is singlelinetrue
: Alwaysalways
: Always
Examples:
false |
---|
|
never |
---|
|
if_owner_is_single_line |
---|
|
true |
---|
|
always |
---|
|
Place property accessor expression body on the same line
Property names:
[resharper_]csharp_place_expr_accessor_on_single_line
, [resharper_]place_expr_accessor_on_single_line
Possible values:
false
: Nevernever
: Neverif_owner_is_single_line
: If owner is singlelinetrue
: Alwaysalways
: Always
Examples:
false |
---|
|
never |
---|
|
if_owner_is_single_line |
---|
|
true |
---|
|
always |
---|
|
Prefer wrap before "=>" followed by expressions
Property names:
[resharper_]csharp_wrap_before_arrow_with_expressions
, [resharper_]wrap_before_arrow_with_expressions
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Arrangement of type parameters, constraints and base types
Allow type constraints on the same line
Property names:
[resharper_]csharp_place_type_constraints_on_same_line
, [resharper_]place_type_constraints_on_same_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Prefer wrap before first constraint
Property names:
[resharper_]csharp_wrap_before_first_type_parameter_constraint
, [resharper_]wrap_before_first_type_parameter_constraint
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Wrap multiple type parameter constraints
Property names:
[resharper_]csharp_wrap_multiple_type_parameter_constraints_style
, [resharper_]wrap_multiple_type_parameter_constraints_style
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multilinechop_always
: Chop always
Examples:
wrap_if_long |
---|
|
chop_if_long |
---|
|
chop_always |
---|
|
Prefer wrap before type parameters opening angle
Property names:
[resharper_]csharp_wrap_before_type_parameter_langle
, [resharper_]wrap_before_type_parameter_langle
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Prefer wrap before ":"
Property names:
[resharper_]csharp_wrap_before_extends_colon
, [resharper_]wrap_before_extends_colon
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Wrap extends/implements list
Property names:
[resharper_]csharp_wrap_extends_list_style
, [resharper_]wrap_extends_list_style
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multilinechop_always
: Chop always
Examples:
wrap_if_long |
---|
|
chop_if_long |
---|
|
chop_always |
---|
|
Arrangement of declaration blocks
Keep existing arrangement of declaration blocks
Property names:
[resharper_]csharp_keep_existing_declaration_block_arrangement
, [resharper_]csharp_keep_existing_arrangement
, [resharper_]keep_existing_declaration_block_arrangement
, [resharper_]keep_existing_arrangement
Possible values:
true | false
Examples:
Before formatting | After formatting, true |
---|---|
|
|
Before formatting | After formatting, false |
---|---|
|
|
Place abstract/auto property/indexer/event declaration on single line
Property names:
[resharper_]csharp_place_abstract_accessorholder_on_single_line
, [resharper_]csharp_place_simple_blocks_on_single_line
, [resharper_]csharp_place_simple_declaration_blocks_on_single_line
, [resharper_]place_abstract_accessorholder_on_single_line
, [resharper_]place_simple_blocks_on_single_line
, [resharper_]place_simple_declaration_blocks_on_single_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Place simple property/indexer/event declaration on single line
Property names:
[resharper_]csharp_place_simple_accessorholder_on_single_line
, [resharper_]csharp_place_simple_blocks_on_single_line
, [resharper_]csharp_place_simple_declaration_blocks_on_single_line
, [resharper_]place_simple_accessorholder_on_single_line
, [resharper_]place_simple_blocks_on_single_line
, [resharper_]place_simple_declaration_blocks_on_single_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Place it on single line even when it has attributes on accessors
Property names:
[resharper_]csharp_place_accessor_with_attrs_holder_on_single_line
, [resharper_]csharp_place_simple_blocks_on_single_line
, [resharper_]csharp_place_simple_declaration_blocks_on_single_line
, [resharper_]place_accessor_with_attrs_holder_on_single_line
, [resharper_]place_simple_blocks_on_single_line
, [resharper_]place_simple_declaration_blocks_on_single_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Place simple accessor on single line
Property names:
[resharper_]csharp_place_simple_accessor_on_single_line
, [resharper_]csharp_place_simple_blocks_on_single_line
, [resharper_]csharp_place_simple_declaration_blocks_on_single_line
, [resharper_]place_simple_accessor_on_single_line
, [resharper_]place_simple_blocks_on_single_line
, [resharper_]place_simple_declaration_blocks_on_single_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Place simple method on single line
Property names:
[resharper_]csharp_place_simple_method_on_single_line
, [resharper_]csharp_place_simple_blocks_on_single_line
, [resharper_]csharp_place_simple_declaration_blocks_on_single_line
, [resharper_]place_simple_method_on_single_line
, [resharper_]place_simple_blocks_on_single_line
, [resharper_]place_simple_declaration_blocks_on_single_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Arrangement of enumerations
Keep existing arrangement of enumeration
Property names:
[resharper_]csharp_keep_existing_enum_arrangement
, [resharper_]csharp_keep_existing_arrangement
, [resharper_]keep_existing_enum_arrangement
, [resharper_]keep_existing_arrangement
Possible values:
true | false
Examples:
Before formatting | After formatting, true |
---|---|
|
|
Before formatting | After formatting, false |
---|---|
|
|
Max enumeration members on a single line
Property names:
[resharper_]csharp_max_enum_members_on_line
, [resharper_]max_enum_members_on_line
Possible values:
an integer
Examples:
value: 0 |
---|
|
value: 1 |
---|
|
value: 2 |
---|
|
Place simple enumeration on single line
Property names:
[resharper_]csharp_place_simple_enum_on_single_line
, [resharper_]csharp_place_simple_blocks_on_single_line
, [resharper_]csharp_place_simple_declaration_blocks_on_single_line
, [resharper_]place_simple_enum_on_single_line
, [resharper_]place_simple_blocks_on_single_line
, [resharper_]place_simple_declaration_blocks_on_single_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Wrap enumeration declaration
Property names:
[resharper_]csharp_wrap_enum_declaration
, [resharper_]wrap_enum_declaration
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multilinechop_always
: Chop always
Examples:
wrap_if_long |
---|
|
chop_if_long |
---|
|
chop_always |
---|
|
Arrangement of statements
UNKNOWN
Property names:
csharp_new_line_before_else
, [resharper_]new_line_before_else
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Place "while" on new line
Property names:
[resharper_]csharp_new_line_before_while
, [resharper_]new_line_before_while
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
UNKNOWN
Property names:
csharp_new_line_before_catch
, [resharper_]new_line_before_catch
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
UNKNOWN
Property names:
csharp_new_line_before_finally
, [resharper_]new_line_before_finally
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Wrap "for" statement header
Property names:
[resharper_]csharp_wrap_for_stmt_header_style
, [resharper_]wrap_for_stmt_header_style
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multilinechop_always
: Chop always
Examples:
wrap_if_long |
---|
|
chop_if_long |
---|
|
chop_always |
---|
|
Wrap multiple declaration
Property names:
[resharper_]csharp_wrap_multiple_declaration_style
, [resharper_]wrap_multiple_declaration_style
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multilinechop_always
: Chop always
Examples:
wrap_if_long |
---|
|
chop_if_long |
---|
|
chop_always |
---|
|
Arrangement of embedded statements
Keep existing arrangement of embedded statements
Property names:
[resharper_]csharp_keep_existing_embedded_arrangement
, [resharper_]csharp_keep_existing_arrangement
, [resharper_]keep_existing_embedded_arrangement
, [resharper_]keep_existing_arrangement
Possible values:
true | false
Examples:
Before formatting | After formatting, true |
---|---|
|
|
Before formatting | After formatting, false |
---|---|
|
|
Place simple embedded statement on the same line
Property names:
[resharper_]csharp_place_simple_embedded_statement_on_same_line
, [resharper_]place_simple_embedded_statement_on_same_line
Possible values:
false
: Nevernever
: Neverif_owner_is_single_line
: If owner is singlelinetrue
: Alwaysalways
: Always
Examples:
false |
---|
|
never |
---|
|
if_owner_is_single_line |
---|
|
true |
---|
|
always |
---|
|
Place simple "case" statement on the same line
Property names:
[resharper_]csharp_place_simple_case_statement_on_same_line
, [resharper_]place_simple_case_statement_on_same_line
Possible values:
false
: Nevernever
: Neverif_owner_is_single_line
: If owner is singlelinetrue
: Alwaysalways
: Always
Examples:
false |
---|
|
never |
---|
|
if_owner_is_single_line |
---|
|
true |
---|
|
always |
---|
|
Arrangement of embedded blocks
Keep existing arrangement of embedded blocks
Property names:
[resharper_]csharp_keep_existing_embedded_block_arrangement
, [resharper_]csharp_keep_existing_arrangement
, [resharper_]keep_existing_embedded_block_arrangement
, [resharper_]keep_existing_arrangement
Possible values:
true | false
Examples:
Before formatting | After formatting, true |
---|---|
|
|
Before formatting | After formatting, false |
---|---|
|
|
Place a block with a single simple statement on the same line
Property names:
[resharper_]csharp_place_simple_embedded_block_on_same_line
, [resharper_]csharp_place_simple_blocks_on_single_line
, [resharper_]place_simple_embedded_block_on_same_line
, [resharper_]place_simple_blocks_on_single_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Place simple anonymous method on single line
Property names:
[resharper_]csharp_place_simple_anonymousmethod_on_single_line
, [resharper_]csharp_place_simple_blocks_on_single_line
, [resharper_]place_simple_anonymousmethod_on_single_line
, [resharper_]place_simple_blocks_on_single_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Arrangement of switch expressions
Keep existing arrangement of switch expressions
Property names:
[resharper_]csharp_keep_existing_switch_expression_arrangement
, [resharper_]csharp_keep_existing_arrangement
, [resharper_]keep_existing_switch_expression_arrangement
, [resharper_]keep_existing_arrangement
Possible values:
true | false
Examples:
Before formatting | After formatting, true |
---|---|
|
|
Before formatting | After formatting, false |
---|---|
|
|
Place simple switch expression on single line
Property names:
[resharper_]csharp_place_simple_switch_expression_on_single_line
, [resharper_]place_simple_switch_expression_on_single_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Wrap switch expression
Property names:
[resharper_]csharp_wrap_switch_expression
, [resharper_]wrap_switch_expression
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multilinechop_always
: Chop always
Examples:
wrap_if_long |
---|
|
chop_if_long |
---|
|
chop_always |
---|
|
Arrangement of property patterns
Keep existing arrangement of property patterns
Property names:
[resharper_]csharp_keep_existing_property_patterns_arrangement
, [resharper_]csharp_keep_existing_arrangement
, [resharper_]keep_existing_property_patterns_arrangement
, [resharper_]keep_existing_arrangement
Possible values:
true | false
Examples:
Before formatting | After formatting, true |
---|---|
|
|
Before formatting | After formatting, false |
---|---|
|
|
Place simple property pattern on single line
Property names:
[resharper_]csharp_place_simple_property_pattern_on_single_line
, [resharper_]place_simple_property_pattern_on_single_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Wrap property pattern
Property names:
[resharper_]csharp_wrap_property_pattern
, [resharper_]wrap_property_pattern
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multilinechop_always
: Chop always
Examples:
wrap_if_long |
---|
|
chop_if_long |
---|
|
chop_always |
---|
|
Arrangement of initializers
Keep existing arrangement of initializers
Property names:
[resharper_]csharp_keep_existing_initializer_arrangement
, [resharper_]csharp_keep_existing_arrangement
, [resharper_]keep_existing_initializer_arrangement
, [resharper_]keep_existing_arrangement
Possible values:
true | false
Examples:
Before formatting | After formatting, true |
---|---|
|
|
Before formatting | After formatting, false |
---|---|
|
|
Place simple array, object and collection on single line
Property names:
[resharper_]csharp_place_simple_initializer_on_single_line
, [resharper_]place_simple_initializer_on_single_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Max object and collection initializer elements on a single line
Property names:
[resharper_]csharp_max_initializer_elements_on_line
, [resharper_]max_initializer_elements_on_line
Possible values:
an integer
Examples:
value: 0 |
---|
|
value: 1 |
---|
|
value: 2 |
---|
|
Wrap object and collection initializer
Property names:
[resharper_]csharp_wrap_object_and_collection_initializer_style
, [resharper_]wrap_object_and_collection_initializer_style
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multilinechop_always
: Chop always
Examples:
wrap_if_long |
---|
|
chop_if_long |
---|
|
chop_always |
---|
|
Max array initializer elements on a single line
Property names:
[resharper_]csharp_max_array_initializer_elements_on_line
, [resharper_]max_array_initializer_elements_on_line
Possible values:
an integer
Examples:
value: 0 |
---|
|
value: 1 |
---|
|
value: 2 |
---|
|
Wrap array initializer
Property names:
[resharper_]csharp_wrap_array_initializer_style
, [resharper_]wrap_array_initializer_style
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multilinechop_always
: Chop always
Examples:
wrap_if_long |
---|
|
chop_if_long |
---|
|
chop_always |
---|
|
Arrangement of invocations
Wrap invocation arguments
Property names:
[resharper_]csharp_wrap_arguments_style
, [resharper_]wrap_arguments_style
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multilinechop_always
: Chop always
Examples:
wrap_if_long |
---|
|
chop_if_long |
---|
|
chop_always |
---|
|
Max invocation arguments on a single line
Property names:
[resharper_]csharp_max_invocation_arguments_on_line
, [resharper_]max_invocation_arguments_on_line
Possible values:
an integer
Examples:
value: 0 |
---|
|
value: 1 |
---|
|
value: 2 |
---|
|
Keep existing arrangement of parenthesis in invocation
Property names:
[resharper_]csharp_keep_existing_invocation_parens_arrangement
, [resharper_]csharp_keep_existing_arrangement
, [resharper_]keep_existing_invocation_parens_arrangement
, [resharper_]keep_existing_arrangement
Possible values:
true | false
Examples:
Before formatting | After formatting, true |
---|---|
|
|
Before formatting | After formatting, false |
---|---|
|
|
Prefer wrap before "(" in invocation
Property names:
[resharper_]csharp_wrap_before_invocation_lpar
, [resharper_]wrap_before_invocation_lpar
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Prefer wrap after "(" in invocation
Property names:
[resharper_]csharp_wrap_after_invocation_lpar
, [resharper_]wrap_after_invocation_lpar
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Prefer wrap before ")" in invocation
Property names:
[resharper_]csharp_wrap_before_invocation_rpar
, [resharper_]wrap_before_invocation_rpar
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Arrangement of member access expressions
Prefer wrap after "."
Property names:
[resharper_]csharp_wrap_after_dot_in_method_calls
, [resharper_]wrap_after_dot_in_method_calls
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Wrap chained method calls
Property names:
[resharper_]csharp_wrap_chained_method_calls
, [resharper_]wrap_chained_method_calls
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multilinechop_always
: Chop always
Examples:
wrap_if_long |
---|
|
chop_if_long |
---|
|
chop_always |
---|
|
Arrangement of binary expressions
Prefer wrap before operator in binary expression
Property names:
[resharper_]csharp_wrap_before_binary_opsign
, [resharper_]wrap_before_binary_opsign
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Wrap chained binary expressions
Property names:
[resharper_]csharp_wrap_chained_binary_expressions
, [resharper_]wrap_chained_binary_expressions
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multiline
Examples:
wrap_if_long |
---|
|
chop_if_long |
---|
|
Force chop compound condition in "if" statement
Property names:
[resharper_]csharp_force_chop_compound_if_expression
, [resharper_]force_chop_compound_if_expression
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Force chop compound condition in "while" statement
Property names:
[resharper_]csharp_force_chop_compound_while_expression
, [resharper_]force_chop_compound_while_expression
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Force chop compound condition in "do" statement
Property names:
[resharper_]csharp_force_chop_compound_do_expression
, [resharper_]force_chop_compound_do_expression
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Arrangement of ternary expressions
Prefer wrap before "?" and ":" in ternary expressions
Property names:
[resharper_]csharp_wrap_before_ternary_opsigns
, [resharper_]wrap_before_ternary_opsigns
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Wrap ternary expression
Property names:
[resharper_]csharp_wrap_ternary_expr_style
, [resharper_]wrap_ternary_expr_style
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multilinechop_always
: Chop always
Examples:
wrap_if_long |
---|
|
chop_if_long |
---|
|
chop_always |
---|
|
Nested ternary expression style
Property names:
[resharper_]csharp_nested_ternary_style
, [resharper_]nested_ternary_style
Possible values:
simple_wrap
: Simple wrap/Do not changeautodetect
: Chop in existing stylecompact
: Chop in compact styleexpanded
: Chop in expanded style
Examples:
Before formatting | After formatting, simple_wrap |
---|---|
|
|
Before formatting | After formatting, autodetect |
---|---|
|
|
Before formatting | After formatting, compact |
---|---|
|
|
Before formatting | After formatting, expanded |
---|---|
|
|
Arrangement of LINQ expressions
Wrap LINQ expressions
Property names:
[resharper_]csharp_wrap_linq_expressions
, [resharper_]wrap_linq_expressions
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multilinechop_always
: Chop always
Examples:
wrap_if_long |
---|
|
chop_if_long |
---|
|
chop_always |
---|
|
Prefer wrap before multiline LINQ expressions
Property names:
[resharper_]csharp_wrap_before_linq_expression
, [resharper_]wrap_before_linq_expression
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Place "into" on new line in LINQ expressions
Property names:
[resharper_]csharp_place_linq_into_on_new_line
, [resharper_]place_linq_into_on_new_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Arrangement of interpolated strings
Wrap verbatim interpolated strings
Property names:
[resharper_]csharp_wrap_verbatim_interpolated_strings
, [resharper_]wrap_verbatim_interpolated_strings
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multilineno_wrap
: Do not wrap even if long
Examples:
wrap_if_long |
---|
|
chop_if_long |
---|
|
no_wrap |
---|
|