JetBrains Rider 2023.1 Help

EditorConfig properties for VB.NET: Spaces

Nearby parentheses

Before invocation parentheses

Property names:

[resharper_]vb_space_before_invocation_parentheses, [resharper_]space_before_invocation_parentheses

Possible values:

true | false

Examples:

true

Call Foo (x)

false

Call Foo(x)

Before empty invocation parentheses

Property names:

[resharper_]vb_space_before_empty_invocation_parentheses, [resharper_]space_before_empty_invocation_parentheses

Possible values:

true | false

Examples:

true

Call Foo ()

false

Call Foo()

Before method declaration parentheses

Property names:

[resharper_]vb_space_before_method_parentheses, [resharper_]space_before_method_parentheses

Possible values:

true | false

Examples:

true

Sub Foo (x As Integer) End Sub

false

Sub Foo(x As Integer) End Sub

Before empty method declaration parentheses

Property names:

[resharper_]vb_space_before_empty_method_parentheses, [resharper_]space_before_empty_method_parentheses

Possible values:

true | false

Examples:

true

Sub Foo () End Sub

false

Sub Foo() End Sub

Within invocation parentheses

Property names:

[resharper_]vb_space_within_invocation_parentheses, [resharper_]space_within_invocation_parentheses

Possible values:

true | false

Examples:

true

Call Foo( x )

false

Call Foo(x)

Within empty invocation parentheses

Property names:

[resharper_]vb_space_within_empty_invocation_parentheses, [resharper_]space_within_empty_invocation_parentheses

Possible values:

true | false

Examples:

true

Call Foo( )

false

Call Foo()

Within method declaration parentheses

Property names:

[resharper_]vb_space_within_method_parentheses, [resharper_]space_within_method_parentheses

Possible values:

true | false

Examples:

true

Sub Foo( x As Integer ) End Sub

false

Sub Foo(x As Integer) End Sub

Within empty method declaration parentheses

Property names:

[resharper_]vb_space_within_empty_method_parentheses, [resharper_]space_within_empty_method_parentheses

Possible values:

true | false

Examples:

true

Sub Foo( ) End Sub

false

Sub Foo() End Sub

Before type parameter parentheses

Property names:

[resharper_]vb_space_before_type_parameter_parentheses, [resharper_]space_before_type_parameter_parentheses

Possible values:

true | false

Examples:

true

Sub Foo (Of T1)() End Sub

false

Sub Foo(Of T1)() End Sub

Within type parameter parentheses

Property names:

[resharper_]vb_space_within_type_parameter_parentheses, [resharper_]space_within_type_parameter_parentheses

Possible values:

true | false

Examples:

true

Sub Foo (Of T1)() End Sub

false

Sub Foo (Of T1)() End Sub

Within expression parentheses

Property names:

[resharper_]vb_space_within_expression_parentheses, [resharper_]space_within_expression_parentheses

Possible values:

true | false

Examples:

true

x = 2*( y + z )

false

x = 2*(y + z)

Within tuple parentheses

Property names:

[resharper_]vb_space_within_tuple_parentheses, [resharper_]space_within_tuple_parentheses

Possible values:

true | false

Examples:

true

x = ( 12, 56 )

false

x = (12, 56)

Attributes

Within attribute angles

Property names:

[resharper_]vb_space_within_attribute_angles, [resharper_]space_within_attribute_angles

Possible values:

true | false

Examples:

true

< Assembly: AssemblyTitle("") >

false

<Assembly: AssemblyTitle("")>

Before attribute target colon

Property names:

[resharper_]vb_space_before_attribute_target_colon, [resharper_]space_before_attribute_target_colon

Possible values:

true | false

Examples:

true

<Assembly : AssemblyTitle("")>

false

<Assembly: AssemblyTitle("")>

After attribute target colon

Property names:

[resharper_]vb_space_after_attribute_target_colon, [resharper_]space_after_attribute_target_colon

Possible values:

true | false

Examples:

true

<Assembly: AssemblyTitle("")>

false

<Assembly:AssemblyTitle("")>

Arrays

Before array rank parentheses

Property names:

[resharper_]vb_space_before_array_rank_parentheses, [resharper_]space_before_array_rank_parentheses

Possible values:

true | false

Examples:

true

Class C Dim a As Integer (,) = {{0, 1}, {2, 3}} End Class

false

Class C Dim a As Integer(,) = {{0, 1}, {2, 3}} End Class

Within array rank parentheses

Property names:

[resharper_]vb_space_within_array_rank_parentheses, [resharper_]space_within_array_rank_parentheses

Possible values:

true | false

Examples:

true

Class C Dim a As Integer( , ) = {{0, 1}, {2, 3}} End Class

false

Class C Dim a As Integer(,) = {{0, 1}, {2, 3}} End Class

Within empty array rank parentheses

Property names:

[resharper_]vb_space_within_array_rank_empty_parentheses, [resharper_]space_within_array_rank_empty_parentheses

Possible values:

true | false

Examples:

true

Class C Dim a As Integer( ) End Class

false

Class C Dim a As Integer() End Class

Within array initialization braces

Property names:

[resharper_]vb_space_within_array_initialization_braces, [resharper_]space_within_array_initialization_braces

Possible values:

true | false

Examples:

true

Class C Dim a As Integer(,) = { { 0, 1 }, { 2, 3 } } End Class

false

Class C Dim a As Integer(,) = {{0, 1}, {2, 3}} End Class

Around operations

Assignment operators (such as '=' and '+=')

Property names:

[resharper_]vb_space_around_assignment_op, [resharper_]vb_space_around_binary_operator, [resharper_]space_around_assignment_op, [resharper_]space_around_binary_operator

Possible values:

true | false

Examples:

true

x = 1 + 2

false

x=1 + 2

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

Property names:

[resharper_]vb_space_around_relational_op, [resharper_]vb_space_around_binary_operator, [resharper_]space_around_relational_op, [resharper_]space_around_binary_operator

Possible values:

true | false

Examples:

true

If a < b Then a = b

false

If a<b Then a = b

Additive operators (+,-)

Property names:

[resharper_]vb_space_around_additive_op, [resharper_]vb_space_around_binary_operator, [resharper_]space_around_additive_op, [resharper_]space_around_binary_operator

Possible values:

true | false

Examples:

true

x = 1 + 2

false

x = 1+2

Multiplicative operators (such as '*' and '/')

Property names:

[resharper_]vb_space_around_multiplicative_op, [resharper_]vb_space_around_binary_operator, [resharper_]space_around_multiplicative_op, [resharper_]space_around_binary_operator

Possible values:

true | false

Examples:

true

x = y * z

false

x = y*z

Shift operators (<<,>>)

Property names:

[resharper_]vb_space_around_shift_op, [resharper_]vb_space_around_binary_operator, [resharper_]space_around_shift_op, [resharper_]space_around_binary_operator

Possible values:

true | false

Examples:

true

x = 1 << 2

false

x = 1<<2

After unary operators

Property names:

[resharper_]vb_space_after_unary_op, [resharper_]vb_space_after_unary_operator, [resharper_]space_after_unary_op, [resharper_]space_after_unary_operator

Possible values:

true | false

Examples:

true

x = - 2

false

x = -2

Other

Before ','

Property names:

[resharper_]vb_space_before_comma, [resharper_]space_before_comma

Possible values:

true | false

Examples:

true

Call Foo(x , y , z)

false

Call Foo(x, y, z)

After ','

Property names:

[resharper_]vb_space_after_comma, [resharper_]space_after_comma

Possible values:

true | false

Examples:

true

Call Foo(x, y, z)

false

Call Foo(x,y,z)

Around '.'

Property names:

[resharper_]vb_space_around_dot, [resharper_]vb_space_around_member_access_operator, [resharper_]space_around_dot, [resharper_]space_around_member_access_operator

Possible values:

true | false

Examples:

true

System . Console . WriteLine(a)

false

System.Console.WriteLine(a)

Before ':' in label

Property names:

[resharper_]vb_space_before_label_colon, [resharper_]space_before_label_colon

Possible values:

true | false

Examples:

true

10 : Call Foo()

false

10: Call Foo()

Around statement ':'

Property names:

[resharper_]vb_space_around_stmt_colon, [resharper_]space_around_stmt_colon

Possible values:

true | false

Examples:

true

Call Foo1 Call Foo2 Call Foo3

false

Call Foo1 Call Foo2 Call Foo3
Last modified: 27 March 2023