ReSharper 2025.2 Help

VB.NET 的 EditorConfig 属性:空格

附近的括号

调用圆括号前

属性名称:

[resharper_]vb_space_before_invocation_parentheses[resharper_]space_before_invocation_parentheses

可能的值:

true|false

示例:

true

Call Foo (x)

false

Call Foo(x)

空调用圆括号前

属性名称:

[resharper_]vb_space_before_empty_invocation_parentheses[resharper_]space_before_empty_invocation_parentheses

可能的值:

true|false

示例:

true

Call Foo ()

false

Call Foo()

方法声明圆括号前

属性名称:

[resharper_]vb_space_before_method_parentheses[resharper_]space_before_method_parentheses

可能的值:

true|false

示例:

true

Sub Foo (x As Integer) End Sub

false

Sub Foo(x As Integer) End Sub

空方法声明圆括号前

属性名称:

[resharper_]vb_space_before_empty_method_parentheses[resharper_]space_before_empty_method_parentheses

可能的值:

true|false

示例:

true

Sub Foo () End Sub

false

Sub Foo() End Sub

调用圆括号内

属性名称:

[resharper_]vb_space_within_invocation_parentheses[resharper_]space_within_invocation_parentheses

可能的值:

true|false

示例:

true

Call Foo( x )

false

Call Foo(x)

空调用圆括号内

属性名称:

[resharper_]vb_space_within_empty_invocation_parentheses[resharper_]space_within_empty_invocation_parentheses

可能的值:

true|false

示例:

true

Call Foo( )

false

Call Foo()

方法声明圆括号内

属性名称:

[resharper_]vb_space_within_method_parentheses[resharper_]space_within_method_parentheses

可能的值:

true|false

示例:

true

Sub Foo( x As Integer ) End Sub

false

Sub Foo(x As Integer) End Sub

空方法声明圆括号内

属性名称:

[resharper_]vb_space_within_empty_method_parentheses[resharper_]space_within_empty_method_parentheses

可能的值:

true|false

示例:

true

Sub Foo( ) End Sub

false

Sub Foo() End Sub

类型形参圆括号前

属性名称:

[resharper_]vb_space_before_type_parameter_parentheses[resharper_]space_before_type_parameter_parentheses

可能的值:

true|false

示例:

true

Sub Foo (Of T1)() End Sub

false

Sub Foo(Of T1)() End Sub

类型形参圆括号内

属性名称:

[resharper_]vb_space_within_type_parameter_parentheses[resharper_]space_within_type_parameter_parentheses

可能的值:

true|false

示例:

true

Sub Foo (Of T1)() End Sub

false

Sub Foo (Of T1)() End Sub

表达式圆括号内

属性名称:

[resharper_]vb_space_within_expression_parentheses[resharper_]space_within_expression_parentheses

可能的值:

true|false

示例:

true

x = 2*( y + z )

false

x = 2*(y + z)

元组圆括号内

属性名称:

[resharper_]vb_space_within_tuple_parentheses[resharper_]space_within_tuple_parentheses

可能的值:

true|false

示例:

true

x = ( 12, 56 )

false

x = (12, 56)

特性

特性尖括号内

属性名称:

[resharper_]vb_space_within_attribute_angles[resharper_]space_within_attribute_angles

可能的值:

true|false

示例:

true

< Assembly: AssemblyTitle("") >

false

<Assembly: AssemblyTitle("")>

特性目标冒号前

属性名称:

[resharper_]vb_space_before_attribute_target_colon[resharper_]space_before_attribute_target_colon

可能的值:

true|false

示例:

true

<Assembly : AssemblyTitle("")>

false

<Assembly: AssemblyTitle("")>

特性目标冒号后

属性名称:

[resharper_]vb_space_after_attribute_target_colon[resharper_]space_after_attribute_target_colon

可能的值:

true|false

示例:

true

<Assembly: AssemblyTitle("")>

false

<Assembly:AssemblyTitle("")>

数组

数组秩圆括号前

属性名称:

[resharper_]vb_space_before_array_rank_parentheses[resharper_]space_before_array_rank_parentheses

可能的值:

true|false

示例:

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

数组秩圆括号内

属性名称:

[resharper_]vb_space_within_array_rank_parentheses[resharper_]space_within_array_rank_parentheses

可能的值:

true|false

示例:

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

空数组秩圆括号内

属性名称:

[resharper_]vb_space_within_array_rank_empty_parentheses[resharper_]space_within_array_rank_empty_parentheses

可能的值:

true|false

示例:

true

Class C Dim a As Integer( ) End Class

false

Class C Dim a As Integer() End Class

数组初始化大括号内

属性名称:

[resharper_]vb_space_within_array_initialization_braces[resharper_]space_within_array_initialization_braces

可能的值:

true|false

示例:

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

操作周围

赋值运算符(如 '=' 和 '+=')

属性名称:

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

可能的值:

true|false

示例:

true

x = 1 + 2

false

x=1 + 2

关系运算符(<、>、<=、>=)

属性名称:

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

可能的值:

true|false

示例:

true

If a < b Then a = b

false

If a<b Then a = b

加法运算符(+、-)

属性名称:

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

可能的值:

true|false

示例:

true

x = 1 + 2

false

x = 1+2

乘法运算符(如 '*' 和 '/')

属性名称:

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

可能的值:

true|false

示例:

true

x = y * z

false

x = y*z

移位运算符(<<、>>)

属性名称:

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

可能的值:

true|false

示例:

true

x = 1 << 2

false

x = 1<<2

一元运算符后

属性名称:

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

可能的值:

true|false

示例:

true

x = - 2

false

x = -2

其它

',' 前

属性名称:

[resharper_]vb_space_before_comma[resharper_]space_before_comma

可能的值:

true|false

示例:

true

Call Foo(x , y , z)

false

Call Foo(x, y, z)

',' 后

属性名称:

[resharper_]vb_space_after_comma[resharper_]space_after_comma

可能的值:

true|false

示例:

true

Call Foo(x, y, z)

false

Call Foo(x,y,z)

'.' 周围

属性名称:

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

可能的值:

true|false

示例:

true

System . Console . WriteLine(a)

false

System.Console.WriteLine(a)

标签中的 ':' 前

属性名称:

[resharper_]vb_space_before_label_colon[resharper_]space_before_label_colon

可能的值:

true|false

示例:

true

10 : Call Foo()

false

10: Call Foo()

语句 ':' 周围

属性名称:

[resharper_]vb_space_around_stmt_colon[resharper_]space_around_stmt_colon

可能的值:

true|false

示例:

true

Call Foo1 Call Foo2 Call Foo3

false

Call Foo1 Call Foo2 Call Foo3
最后修改日期: 2025年 9月 27日