VB.NET 的 EditorConfig 属性:其他
对齐多行结构
方法参数
属性名称:
[resharper_]vb_align_multiline_parameter, [resharper_]align_multiline_parameter
可能的值:
true|false
示例:
true |
|---|
Sub Foo(x As Integer,
y As String)
End Sub
|
false |
|---|
Sub Foo(x As Integer,
y As String)
End Sub
|
调用实参
属性名称:
[resharper_]vb_align_multiline_argument, [resharper_]align_multiline_argument
可能的值:
true|false
示例:
true |
|---|
Call SomeMethod(arg1,
arg2)
|
false |
|---|
Call SomeMethod(arg1,
arg2)
|
实现/句柄列表
属性名称:
[resharper_]vb_align_multiline_implements_list, [resharper_]align_multiline_implements_list
可能的值:
true|false
表达式
属性名称:
[resharper_]vb_align_multiline_expression, [resharper_]align_multiline_expression
可能的值:
true|false
示例:
true |
|---|
x = y +
z
|
false |
|---|
x = y +
z
|
数组初始化器
属性名称:
[resharper_]vb_align_multiline_array_initializer, [resharper_]align_multiline_array_initializer
可能的值:
true|false
示例:
true |
|---|
Class C
Dim a As Integer() = { _
0,
1,
2
}
End Class
|
false |
|---|
Class C
Dim a As Integer() = { _
0,
1,
2
}
End Class
|
多个声明列表
属性名称:
[resharper_]vb_align_multiple_declaration, [resharper_]align_multiple_declaration
可能的值:
true|false
示例:
true |
|---|
Class C
Public Dim x As Integer = 0,
y As Integer = 0
End Class
|
false |
|---|
Class C
Public Dim x As Integer = 0,
y As Integer = 0
End Class
|
其它
缩进 'select' 中的 'case'
属性名称:
[resharper_]vb_indent_case_from_select, [resharper_]indent_case_from_select
可能的值:
true|false
示例:
true |
|---|
Select Case x
Case 0
Console.WriteLine("0")
Case 1
Console.WriteLine("1")
End Select
|
false |
|---|
Select Case x
Case 0
Console.WriteLine("0")
Case 1
Console.WriteLine("1")
End Select
|
不缩进从第一列开始的注释
属性名称:
[resharper_]vb_stick_comment, [resharper_]stick_comment
可能的值:
true|false
示例:
格式化之前 | 格式化之后,真 |
|---|---|
Namespace N
' Some comment
Class C
End Class
End Namespace
| Namespace N
' Some comment
Class C
End Class
End Namespace
|
格式化之前 | 格式化之后,假 |
|---|---|
Namespace N
' Some comment
Class C
End Class
End Namespace
| Namespace N
' Some comment
Class C
End Class
End Namespace
|