Rider Help

C# - Spaces

Before Parentheses

Method call parentheses

Property names:

csharp_space_between_method_call_name_and_opening_parenthesis, space_between_method_call_name_and_opening_parenthesis, [resharper_]csharp_space_before_method_call_parentheses, [resharper_]space_before_method_call_parentheses

Possible values:

true | false

Examples:

true
void·Method() { ····foo1·("string"true); ····foo2(); }
false
void·Method() { ····foo1("string"true); ····foo2(); }

Method call empty parentheses

Property names:

csharp_space_between_method_call_name_and_opening_parenthesis, space_between_method_call_name_and_opening_parenthesis, [resharper_]csharp_space_before_empty_method_call_parentheses, [resharper_]space_before_empty_method_call_parentheses

Possible values:

true | false

Examples:

true
void·Method() { ····foo1("string"true); ····foo2·(); }
false
void·Method() { ····foo1("string"true); ····foo2(); }

Method declaration parentheses

Property names:

csharp_space_between_method_declaration_name_and_open_parenthesis, space_between_method_declaration_name_and_open_parenthesis, [resharper_]csharp_space_before_method_parentheses, [resharper_]space_before_method_parentheses

Possible values:

true | false

Examples:

true
class·C { ····public·abstract·void·Method1·(string·str); ····public·abstract·void·Method2(); }
false
class·C { ····public·abstract·void·Method1(string·str); ····public·abstract·void·Method2(); }

Method declaration empty parentheses

Property names:

csharp_space_between_method_declaration_name_and_open_parenthesis, space_between_method_declaration_name_and_open_parenthesis, [resharper_]csharp_space_before_empty_method_parentheses, [resharper_]space_before_empty_method_parentheses

Possible values:

true | false

Examples:

true
class·C { ····public·abstract·void·Method1(string·str); ····public·abstract·void·Method2·(); }
false
class·C { ····public·abstract·void·Method1(string·str); ····public·abstract·void·Method2(); }

Array access brackets

Property names:

csharp_space_before_open_square_brackets, space_before_open_square_brackets, [resharper_]csharp_space_before_array_access_brackets, [resharper_]space_before_array_access_brackets

Possible values:

true | false

Examples:

true
array·[iarray·[1];
false
array[iarray[1];

"if" parentheses

Property names:

csharp_space_after_keywords_in_control_flow_statements, space_after_keywords_in_control_flow_statements, [resharper_]csharp_space_before_if_parentheses, [resharper_]space_before_if_parentheses

Possible values:

true | false

Examples:

true
if·(condition) { ····foo(); } else { ····foo(); }
false
if(condition) { ····foo(); } else { ····foo(); }

"while" parentheses

Property names:

csharp_space_after_keywords_in_control_flow_statements, space_after_keywords_in_control_flow_statements, [resharper_]csharp_space_before_while_parentheses, [resharper_]space_before_while_parentheses

Possible values:

true | false

Examples:

true
while·(condition) { ····do ····{ ········foo(); ····while·(condition); }
false
while(condition) { ····do ····{ ········foo(); ····while(condition); }

"catch" parentheses

Property names:

csharp_space_after_keywords_in_control_flow_statements, space_after_keywords_in_control_flow_statements, [resharper_]csharp_space_before_catch_parentheses, [resharper_]space_before_catch_parentheses

Possible values:

true | false

Examples:

true
try { ····foo(); } catch·(Exception·e) { }
false
try { ····foo(); } catch(Exception·e) { }

"switch" parentheses

Property names:

csharp_space_after_keywords_in_control_flow_statements, space_after_keywords_in_control_flow_statements, [resharper_]csharp_space_before_switch_parentheses, [resharper_]space_before_switch_parentheses

Possible values:

true | false

Examples:

true
switch·(expr) { ····case·0: ········break; }
false
switch(expr) { ····case·0: ········break; }

"for" parentheses

Property names:

csharp_space_after_keywords_in_control_flow_statements, space_after_keywords_in_control_flow_statements, [resharper_]csharp_space_before_for_parentheses, [resharper_]space_before_for_parentheses

Possible values:

true | false

Examples:

true
for·(int·010i++) { ····foo(); }
false
for(int·010i++) { ····foo(); }

"foreach" parentheses

Property names:

csharp_space_after_keywords_in_control_flow_statements, space_after_keywords_in_control_flow_statements, [resharper_]csharp_space_before_foreach_parentheses, [resharper_]space_before_foreach_parentheses

Possible values:

true | false

Examples:

true
foreach·(object·in·collection) { ····foo(); }
false
foreach(object·in·collection) { ····foo(); }

"using" parentheses

Property names:

csharp_space_after_keywords_in_control_flow_statements, space_after_keywords_in_control_flow_statements, [resharper_]csharp_space_before_using_parentheses, [resharper_]space_before_using_parentheses

Possible values:

true | false

Examples:

true
using·(new·C()) { ····foo(); }
false
using(new·C()) { ····foo(); }

"lock" parentheses

Property names:

csharp_space_after_keywords_in_control_flow_statements, space_after_keywords_in_control_flow_statements, [resharper_]csharp_space_before_lock_parentheses, [resharper_]space_before_lock_parentheses

Possible values:

true | false

Examples:

true
lock·(this) { ····foo(); }
false
lock(this) { ····foo(); }

"typeof" parentheses

Property names:

[resharper_]csharp_space_before_typeof_parentheses, [resharper_]space_before_typeof_parentheses

Possible values:

true | false

Examples:

true
Type·typeof·(bool);
false
Type·typeof(bool);

"default" parentheses

Property names:

[resharper_]csharp_space_before_default_parentheses, [resharper_]space_before_default_parentheses

Possible values:

true | false

Examples:

true
return·default·(int);
false
return·default(int);

"checked" parentheses

Property names:

[resharper_]csharp_space_before_checked_parentheses, [resharper_]space_before_checked_parentheses

Possible values:

true | false

Examples:

true
return·checked·(100000·10000);
false
return·checked(100000·10000);

"fixed" parentheses

Property names:

csharp_space_after_keywords_in_control_flow_statements, space_after_keywords_in_control_flow_statements, [resharper_]csharp_space_before_fixed_parentheses, [resharper_]space_before_fixed_parentheses

Possible values:

true | false

Examples:

true
fixed·(intfib·new·int[1]) { ····foo(); }
false
fixed(intfib·new·int[1]) { ····foo(); }

"sizeof" parentheses

Property names:

[resharper_]csharp_space_before_sizeof_parentheses, [resharper_]space_before_sizeof_parentheses

Possible values:

true | false

Examples:

true
int·size·sizeof·(bool);
false
int·size·sizeof(bool);

"nameof" parentheses

Property names:

[resharper_]csharp_space_before_nameof_parentheses, [resharper_]space_before_nameof_parentheses

Possible values:

true | false

Examples:

true
return·nameof·(myField);
false
return·nameof(myField);

Before type parameter list angle

Property names:

[resharper_]csharp_space_before_type_parameter_angle, [resharper_]space_before_type_parameter_angle

Possible values:

true | false

Examples:

true
class·<T1T2> { }
false
class·C<T1T2> { }

Before type argument list angle

Property names:

[resharper_]csharp_space_before_type_argument_angle, [resharper_]space_before_type_argument_angle

Possible values:

true | false

Examples:

true
foo·<int>();
false
foo<int>();

Around Binary Operators

Assignment operators (=,+=,...)

Property names:

[resharper_]csharp_space_around_assignment_op, [resharper_]csharp_space_around_binary_operator, [resharper_]space_around_assignment_op, [resharper_]space_around_binary_operator

Possible values:

true | false

Examples:

true
+=·1;
false
a+=1;

Logical operators (&&,||)

Property names:

[resharper_]csharp_space_around_logical_op, [resharper_]csharp_space_around_binary_operator, [resharper_]space_around_logical_op, [resharper_]space_around_binary_operator

Possible values:

true | false

Examples:

true
if·(&&·||·c) { }
false
if·(a&&b||c) { }

Equality operators (==,!=)

Property names:

[resharper_]csharp_space_around_equality_op, [resharper_]csharp_space_around_binary_operator, [resharper_]space_around_equality_op, [resharper_]space_around_binary_operator

Possible values:

true | false

Examples:

true
if·(==·b) { }
false
if·(a==b) { }

Relational operators (<,>,<=,>=)

Property names:

[resharper_]csharp_space_around_relational_op, [resharper_]csharp_space_around_binary_operator, [resharper_]space_around_relational_op, [resharper_]space_around_binary_operator

Possible values:

true | false

Examples:

true
bool·condition·b;
false
bool·condition·a<b;

Bitwise operators (&,|,^)

Property names:

[resharper_]csharp_space_around_bitwise_op, [resharper_]csharp_space_around_binary_operator, [resharper_]space_around_bitwise_op, [resharper_]space_around_binary_operator

Possible values:

true | false

Examples:

true
int·c;
false
int·b^c;

Additive operators (+,-)

Property names:

[resharper_]csharp_space_around_additive_op, [resharper_]csharp_space_around_binary_operator, [resharper_]space_around_additive_op, [resharper_]space_around_binary_operator

Possible values:

true | false

Examples:

true
c;
false
a+b-c;

Multiplicative operators (*,/,%)

Property names:

[resharper_]csharp_space_around_multiplicative_op, [resharper_]csharp_space_around_binary_operator, [resharper_]space_around_multiplicative_op, [resharper_]space_around_binary_operator

Possible values:

true | false

Examples:

true
c;
false
a*b/c;

Shift operators (<<,>>)

Property names:

[resharper_]csharp_space_around_shift_op, [resharper_]csharp_space_around_binary_operator, [resharper_]space_around_shift_op, [resharper_]space_around_binary_operator

Possible values:

true | false

Examples:

true
<<·1;
false
x<<1;

Null coalescing operator (??)

Property names:

[resharper_]csharp_space_around_nullcoalescing_op, [resharper_]csharp_space_around_binary_operator, [resharper_]space_around_nullcoalescing_op, [resharper_]space_around_binary_operator

Possible values:

true | false

Examples:

true
??·b;
false
a??b;

Unsafe arrow operator (->)

Property names:

[resharper_]csharp_space_around_arrow_op, [resharper_]csharp_space_around_member_access_operator, [resharper_]space_around_arrow_op, [resharper_]space_around_member_access_operator

Possible values:

true | false

Examples:

true
int·ptr·->·x;
false
int·ptr->x;

After unary operators

Logical not operator (!)

Property names:

[resharper_]csharp_space_after_logical_not_op, [resharper_]space_after_logical_not_op

Possible values:

true | false

Examples:

true
if·(!·xreturn;
false
if·(!xreturn;

Unary minus operator (-)

Property names:

[resharper_]csharp_space_after_unary_minus_op, [resharper_]space_after_unary_minus_op

Possible values:

true | false

Examples:

true
int·5;
false
int·-5;

Unary plus operator (+)

Property names:

[resharper_]csharp_space_after_unary_plus_op, [resharper_]space_after_unary_plus_op

Possible values:

true | false

Examples:

true
int·5;
false
int·+5;

Unsafe addressof operator (&)

Property names:

[resharper_]csharp_space_after_ampersand_op, [resharper_]space_after_ampersand_op

Possible values:

true | false

Examples:

true
intx;
false
int&x;

Unsafe asterisk operator (*)

Property names:

[resharper_]csharp_space_after_asterik_op, [resharper_]space_after_asterik_op

Possible values:

true | false

Examples:

true
int·ptr;
false
int·*ptr;

Within Parentheses

Parentheses

Property names:

[resharper_]csharp_space_within_parentheses, [resharper_]space_within_parentheses

Possible values:

true | false

Examples:

true
);
false
(d);

Method declaration parentheses

Property names:

csharp_space_between_method_declaration_parameter_list_parentheses, space_between_method_declaration_parameter_list_parentheses

Possible values:

true | false

Examples:

true
class·C { ····public·abstract·void·Method1string·str·); ····public·abstract·void·Method2(); }
false
class·C { ····public·abstract·void·Method1(string·str); ····public·abstract·void·Method2(); }

Method declaration empty parentheses

Property names:

csharp_space_between_method_declaration_empty_parameter_list_parentheses, space_between_method_declaration_empty_parameter_list_parentheses

Possible values:

true | false

Examples:

true
class·C { ····public·abstract·void·Method1(string·str); ····public·abstract·void·Method2); }
false
class·C { ····public·abstract·void·Method1(string·str); ····public·abstract·void·Method2(); }

Method call parentheses

Property names:

csharp_space_between_method_call_parameter_list_parentheses, space_between_method_call_parameter_list_parentheses

Possible values:

true | false

Examples:

true
void·Method() { ····foo1"string"true·); ····foo2(); }
false
void·Method() { ····foo1("string"true); ····foo2(); }

Method call empty parentheses

Property names:

csharp_space_between_method_call_empty_parameter_list_parentheses, space_between_method_call_empty_parameter_list_parentheses

Possible values:

true | false

Examples:

true
void·Method() { ····foo1("string"true); ····foo2); }
false
void·Method() { ····foo1("string"true); ····foo2(); }

Array access brackets

Property names:

csharp_space_between_square_brackets, space_between_square_brackets, [resharper_]csharp_space_within_array_access_brackets, [resharper_]space_within_array_access_brackets

Possible values:

true | false

Examples:

true
arrayarray];
false
array[iarray[1];

Type cast parentheses

Property names:

[resharper_]csharp_space_between_typecast_parentheses, [resharper_]space_between_typecast_parentheses

Possible values:

true | false

Examples:

true
int·int·b;
false
int·(intb;

"if" parentheses

Property names:

[resharper_]csharp_space_within_if_parentheses, [resharper_]csharp_space_between_parentheses_of_control_flow_statements, [resharper_]space_within_if_parentheses, [resharper_]space_between_parentheses_of_control_flow_statements

Possible values:

true | false

Examples:

true
if·condition·) { ····foo(); }
false
if·(condition) { ····foo(); }

"while" parentheses

Property names:

[resharper_]csharp_space_within_while_parentheses, [resharper_]csharp_space_between_parentheses_of_control_flow_statements, [resharper_]space_within_while_parentheses, [resharper_]space_between_parentheses_of_control_flow_statements

Possible values:

true | false

Examples:

true
while·condition·) { ····do ····{ ········foo(); ····while·condition·); }
false
while·(condition) { ····do ····{ ········foo(); ····while·(condition); }

"catch" parentheses

Property names:

[resharper_]csharp_space_within_catch_parentheses, [resharper_]csharp_space_between_parentheses_of_control_flow_statements, [resharper_]space_within_catch_parentheses, [resharper_]space_between_parentheses_of_control_flow_statements

Possible values:

true | false

Examples:

true
try { ····foo(); } catch·Exception·) { } finally { }
false
try { ····foo(); } catch·(Exception·e) { } finally { }

"switch" parentheses

Property names:

[resharper_]csharp_space_within_switch_parentheses, [resharper_]csharp_space_between_parentheses_of_control_flow_statements, [resharper_]space_within_switch_parentheses, [resharper_]space_between_parentheses_of_control_flow_statements

Possible values:

true | false

Examples:

true
switch·expression·) { ····default: ········break; }
false
switch·(expression) { ····default: ········break; }

"for" parentheses

Property names:

[resharper_]csharp_space_within_for_parentheses, [resharper_]csharp_space_between_parentheses_of_control_flow_statements, [resharper_]space_within_for_parentheses, [resharper_]space_between_parentheses_of_control_flow_statements

Possible values:

true | false

Examples:

true
for·int·010i++·) { ····foo(); }
false
for·(int·010i++) { ····foo(); }

"foreach" parentheses

Property names:

[resharper_]csharp_space_within_foreach_parentheses, [resharper_]csharp_space_between_parentheses_of_control_flow_statements, [resharper_]space_within_foreach_parentheses, [resharper_]space_between_parentheses_of_control_flow_statements

Possible values:

true | false

Examples:

true
foreach·object·in·collection·) { ····foo(); }
false
foreach·(object·in·collection) { ····foo(); }

"using" parentheses

Property names:

[resharper_]csharp_space_within_using_parentheses, [resharper_]csharp_space_between_parentheses_of_control_flow_statements, [resharper_]space_within_using_parentheses, [resharper_]space_between_parentheses_of_control_flow_statements

Possible values:

true | false

Examples:

true
using·new·C()·) { ····foo(); }
false
using·(new·C()) { ····foo(); }

"lock" parentheses

Property names:

[resharper_]csharp_space_within_lock_parentheses, [resharper_]csharp_space_between_parentheses_of_control_flow_statements, [resharper_]space_within_lock_parentheses, [resharper_]space_between_parentheses_of_control_flow_statements

Possible values:

true | false

Examples:

true
lock·this·) { ····foo(); }
false
lock·(this) { ····foo(); }

"typeof" parentheses

Property names:

[resharper_]csharp_space_within_typeof_parentheses, [resharper_]space_within_typeof_parentheses

Possible values:

true | false

Examples:

true
Type·typeofbool·);
false
Type·typeof(bool);

"default" parentheses

Property names:

[resharper_]csharp_space_within_default_parentheses, [resharper_]space_within_default_parentheses

Possible values:

true | false

Examples:

true
return·defaultint·);
false
return·default(int);

"checked" parentheses

Property names:

[resharper_]csharp_space_within_checked_parentheses, [resharper_]space_within_checked_parentheses

Possible values:

true | false

Examples:

true
return·checked100000·10000·);
false
return·checked(100000·10000);

"fixed" parentheses

Property names:

[resharper_]csharp_space_within_fixed_parentheses, [resharper_]csharp_space_between_parentheses_of_control_flow_statements, [resharper_]space_within_fixed_parentheses, [resharper_]space_between_parentheses_of_control_flow_statements

Possible values:

true | false

Examples:

true
fixed·intfib·new·int[1) { ····foo(); }
false
fixed·(intfib·new·int[1]) { ····foo(); }

"sizeof" parentheses

Property names:

[resharper_]csharp_space_within_sizeof_parentheses, [resharper_]space_within_sizeof_parentheses

Possible values:

true | false

Examples:

true
int·size·sizeofbool·);
false
int·size·sizeof(bool);

"nameof" parentheses

Property names:

[resharper_]csharp_space_within_nameof_parentheses, [resharper_]space_within_nameof_parentheses

Possible values:

true | false

Examples:

true
return·nameofmyField·);
false
return·nameof(myField);

Type parameter angles

Property names:

[resharper_]csharp_space_within_type_parameter_angles, [resharper_]space_within_type_parameter_angles

Possible values:

true | false

Examples:

true
class·CT1T2·> { }
false
class·C<T1T2> { }

Type argument angles

Property names:

[resharper_]csharp_space_within_type_argument_angles, [resharper_]space_within_type_argument_angles

Possible values:

true | false

Examples:

true
fooint·>();
false
foo<int>();

Ternary Operator

Before '?'

Property names:

[resharper_]csharp_space_before_ternary_quest, [resharper_]space_before_ternary_quest

Possible values:

true | false

Examples:

true
bool·condition·expr1·expr2;
false
bool·conditionexpr1·expr2;

After '?'

Property names:

[resharper_]csharp_space_after_ternary_quest, [resharper_]space_after_ternary_quest

Possible values:

true | false

Examples:

true
bool·condition·expr1·expr2;
false
bool·condition·?expr1·expr2;

Before ':'

Property names:

[resharper_]csharp_space_before_ternary_colon, [resharper_]space_before_ternary_colon

Possible values:

true | false

Examples:

true
bool·condition·expr1·expr2;
false
bool·condition·expr1expr2;

After ':'

Property names:

[resharper_]csharp_space_after_ternary_colon, [resharper_]space_after_ternary_colon

Possible values:

true | false

Examples:

true
bool·condition·expr1·expr2;
false
bool·condition·expr1·:expr2;

Other

After type cast parentheses

Property names:

csharp_space_after_cast, space_after_cast

Possible values:

true | false

Examples:

true
int·(intb;
false
int·(int)b;

Before/after ++ and --

Property names:

[resharper_]csharp_space_near_postfix_and_prefix_op, [resharper_]space_near_postfix_and_prefix_op

Possible values:

true | false

Examples:

true
void·Method(int·p) { ····++; ····--·p; }
false
void·Method(int·p) { ····p++; ····--p; }

Before comma

Property names:

csharp_space_before_comma, space_before_comma

Possible values:

true | false

Examples:

true
foo(c);
false
foo(abc);

After comma

Property names:

csharp_space_after_comma, space_after_comma

Possible values:

true | false

Examples:

true
foo(abc);
false
foo(a,b,c);

Before "for" semicolon

Property names:

csharp_space_before_semicolon_in_for_statement, space_before_semicolon_in_for_statement

Possible values:

true | false

Examples:

true
for·(int·10·i++) { }
false
for·(int·110i++) { }

After "for" semicolon

Property names:

csharp_space_after_semicolon_in_for_statement, space_after_semicolon_in_for_statement

Possible values:

true | false

Examples:

true
for·(int·110i++) { }
false
for·(int·1;10;i++) { }

Before colon in attribute and named parameter

Property names:

[resharper_]csharp_space_before_attribute_colon, [resharper_]space_before_attribute_colon

Possible values:

true | false

Examples:

true
[assembly·:·AssemblyTitle("")] [assembly·:·AssemblyDescription("")]
false
[assembly:·AssemblyTitle("")] [assembly:·AssemblyDescription("")]

After colon in attribute and named parameter

Property names:

[resharper_]csharp_space_after_attribute_colon, [resharper_]space_after_attribute_colon

Possible values:

true | false

Examples:

true
[assembly:·AssemblyTitle("")] [assembly:·AssemblyDescription("")]
false
[assembly:AssemblyTitle("")] [assembly:AssemblyDescription("")]

Before base types list colon

Property names:

csharp_space_before_colon_in_inheritance_clause, space_before_colon_in_inheritance_clause

Possible values:

true | false

Examples:

true
class·Derived·BaseClassInterface { }
false
class·DerivedBaseClassInterface { }

After base types list colon

Property names:

csharp_space_after_colon_in_inheritance_clause, space_after_colon_in_inheritance_clause

Possible values:

true | false

Examples:

true
class·Derived·BaseClassInterface { }
false
class·Derived·:BaseClassInterface { }

Around dot

Property names:

[resharper_]csharp_space_around_dot, [resharper_]csharp_space_around_member_access_operator, [resharper_]space_around_dot, [resharper_]space_around_member_access_operator

Possible values:

true | false

Examples:

true
foo();
false
a.b.foo();

Around lambda arrow

Property names:

[resharper_]csharp_space_around_lambda_arrow, [resharper_]space_around_lambda_arrow

Possible values:

true | false

Examples:

true
Action·=>·1;
false
Action·x=>1;

Before single line accessors block

Property names:

[resharper_]csharp_space_before_singleline_accessorholder, [resharper_]space_before_singleline_accessorholder

Possible values:

true | false

Examples:

true
int·Property·getset}
false
int·Propertygetset}

Within single line accessor

Property names:

[resharper_]csharp_space_in_singleline_accessorholder, [resharper_]space_in_singleline_accessorholder

Possible values:

true | false

Examples:

true
int·Property { ····get·return·x} ····set·value} }
false
int·Property { ····get·{return·x;} ····set·{value;} }

Between accessors in single line property/event

Property names:

[resharper_]csharp_space_between_accessors_in_singleline_property, [resharper_]space_between_accessors_in_singleline_property

Possible values:

true | false

Examples:

true
int·Property·getset}
false
int·Property·get;set}

Between attribute sections

Property names:

[resharper_]csharp_space_between_attribute_sections, [resharper_]space_between_attribute_sections

Possible values:

true | false

Examples:

true
void·Method([NotNull[ItemNotNullIList<stringitems);
false
void·Method([NotNull][ItemNotNullIList<stringitems);

Space between empty braces

Property names:

[resharper_]csharp_space_withing_empty_braces, [resharper_]space_withing_empty_braces

Possible values:

true | false

Examples:

true
class·}
false
class·{}

Within single line method

Property names:

[resharper_]csharp_space_in_singleline_method, [resharper_]space_in_singleline_method

Possible values:

true | false

Examples:

true
void·Foo()·DoSomething();·}
false
void·Foo()·{DoSomething();}

Within single line anonymous method

Property names:

[resharper_]csharp_space_in_singleline_anonymous_method, [resharper_]space_in_singleline_anonymous_method

Possible values:

true | false

Examples:

true
EventHandler·delegate·return};
false
EventHandler·delegate·{return;};

Within attribute brackets

Property names:

csharp_space_between_square_brackets, space_between_square_brackets, [resharper_]csharp_space_within_attribute_brackets, [resharper_]space_within_attribute_brackets

Possible values:

true | false

Examples:

true
[·Attr1,·Attr2(true)·] class·C { }
false
[Attr1,·Attr2(true)] class·C { }

Before array rank brackets

Property names:

csharp_space_before_open_square_brackets, space_before_open_square_brackets, [resharper_]csharp_space_before_array_rank_brackets, [resharper_]space_before_array_rank_brackets

Possible values:

true | false

Examples:

true
int·[]·[,]·null;
false
int[][,]·null;

Within array rank brackets

Property names:

csharp_space_between_square_brackets, space_between_square_brackets, [resharper_]csharp_space_within_array_rank_brackets, [resharper_]space_within_array_rank_brackets

Possible values:

true | false

Examples:

true
intnew·int1];
false
int[,]·new·int[12];

Within array rank empty brackets

Property names:

csharp_space_between_empty_square_brackets, space_between_empty_square_brackets, [resharper_]csharp_space_within_array_rank_empty_brackets, [resharper_]space_within_array_rank_empty_brackets

Possible values:

true | false

Examples:

true
int][,]·null;
false
int[][,]·null;

Within single-line initializer braces

Property names:

[resharper_]csharp_space_within_single_line_array_initializer_braces, [resharper_]space_within_single_line_array_initializer_braces

Possible values:

true | false

Examples:

true
int[]·new·int[]·01};
false
int[]·new·int[]·{012};

Before unsafe pointer declaration

Property names:

[resharper_]csharp_space_before_pointer_asterik_declaration, [resharper_]space_before_pointer_asterik_declaration

Possible values:

true | false

Examples:

true
int·x;
false
intx;

Before semicolon

Property names:

[resharper_]csharp_space_before_semicolon, [resharper_]space_before_semicolon

Possible values:

true | false

Examples:

true
;
false
b;

Before colon in "case" statement

Property names:

[resharper_]csharp_space_before_colon_in_case, [resharper_]space_before_colon_in_case

Possible values:

true | false

Examples:

true
switch·(expr) { ····case·: ········break; }
false
switch·(expr) { ····case·0: ········break; }

Before nullable mark

Property names:

[resharper_]csharp_space_before_nullable_mark, [resharper_]space_before_nullable_mark

Possible values:

true | false

Examples:

true
int·null;
false
int?·null;

Before type parameter constraint colon

Property names:

[resharper_]csharp_space_before_type_parameter_constraint_colon, [resharper_]space_before_type_parameter_constraint_colon

Possible values:

true | false

Examples:

true
class·C<T1where·T1·I { }
false
class·C<T1where·T1I { }

After type parameter constraint colon

Property names:

[resharper_]csharp_space_after_type_parameter_constraint_colon, [resharper_]space_after_type_parameter_constraint_colon

Possible values:

true | false

Examples:

true
class·C<T1where·T1·I { }
false
class·C<T1where·T1·:I { }

Around '=' in namespace alias directive

Property names:

[resharper_]csharp_space_around_alias_eq, [resharper_]space_around_alias_eq

Possible values:

true | false

Examples:

true
using·A.B;
false
using·X=A.B;

Before end of line comment

Property names:

[resharper_]csharp_space_before_trailing_comment, [resharper_]space_before_trailing_comment

Possible values:

true | false

Examples:

true
var·4//·x·=·4
false
var·4;//·x·=·4

After operator keyword

Property names:

[resharper_]csharp_space_after_operator_keyword, [resharper_]space_after_operator_keyword

Possible values:

true | false

Examples:

true
public·static·bool·operator·==(xy) { }
false
public·static·bool·operator==(xy) { }
Last modified: 11 October 2017