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
例:
フォーマット前 | フォーマット後 true |
|---|---|
Namespace N
' Some comment
Class C
End Class
End Namespace | Namespace N
' Some comment
Class C
End Class
End Namespace |
フォーマット前 | フォーマット後 false |
|---|---|
Namespace N
' Some comment
Class C
End Class
End Namespace | Namespace N
' Some comment
Class C
End Class
End Namespace |