VB.NET の EditorConfig プロパティ: 改行
既存のフォーマットを保持する
既存の改行を維持する
プロパティ名:
[resharper_] VB ユーザーの改行を保持, [resharper_] ユーザーの改行を保持
可能な値:
真 | 偽
例:
フォーマット前 | フォーマット後 true |
|---|---|
Function Sum (x As Integer, _
y As Integer) As Integer
Return _
x + y
End Function
| Function Sum(x As Integer,
y As Integer) As Integer
Return _
x + y
End Function
|
フォーマット前 | フォーマット後 false |
|---|---|
Function Sum (x As Integer, _
y As Integer) As Integer
Return _
x + y
End Function
| Function Sum(x As Integer, y As Integer) As Integer
Return x + y
End Function
|
属性
同じ行にタイプ属性を配置する
プロパティ名:
[resharper_] VB 型属性を同じ行に配置
可能な値:
真 | 偽
例:
真 |
|---|
<SomeAttribute> Class C
End Class
|
false |
|---|
<SomeAttribute>
Class C
End Class
|
メソッド属性を同じ行に配置する
プロパティ名:
[resharper_] VB メソッド属性を同じ行に配置
可能な値:
真 | 偽
例:
真 |
|---|
<SomeAttribute> Sub Foo
End Sub
|
false |
|---|
<SomeAttribute>
Sub Foo
End Sub
|
プロパティ属性を同じ行に配置する
プロパティ名:
[resharper_] VB プロパティ属性を同じ行に配置, [resharper_] プロパティ属性を同じ行に配置
可能な値:
真 | 偽
例:
真 |
|---|
<SomeAttribute> Public Property MyProperty() As Integer
Get
End Get
Set(ByVal value As Integer)
End Set
End Property
|
false |
|---|
<SomeAttribute>
Public Property MyProperty() As Integer
Get
End Get
Set(ByVal value As Integer)
End Set
End Property
|
イベント属性を同じ行に配置する
プロパティ名:
[resharper_] VB イベント属性を同じ行に配置, [resharper_] イベント属性を同じ行に配置
可能な値:
真 | 偽
例:
真 |
|---|
<SomeAttribute> Public Event MyEvent()
|
false |
|---|
<SomeAttribute>
Public Event MyEvent()
|
フィールド属性を同じ行に配置する
プロパティ名:
[resharper_] VB フィールド属性を同じ行に配置
可能な値:
真 | 偽
例:
真 |
|---|
Class C
<SomeAttribute> Dim x As Integer
End Class
|
false |
|---|
Class C
<SomeAttribute>
Dim x As Integer
End Class
|
行折り返し
次でハードラップを適用
プロパティ名:
max_line_length, [resharper_] VB 最大行長
可能な値:
整数
仮パラメーターをラップする
プロパティ名:
[resharper_] VB パラメーターの折り返しスタイル, [resharper_] パラメーターの折り返しスタイル
可能な値:
wrap_if_long: シンプルラップchop_if_long: ロングまたは複数行の場合はチョップchop_always: 常にチョップ
例:
wrap_if_long |
|---|
Sub Foo(p1 As Integer, p2 As Integer,
p3 As Integer)
End Sub
|
chop_if_long |
|---|
Sub Foo(p1 As Integer,
p2 As Integer,
p3 As Integer)
End Sub
|
chop_always |
|---|
Sub Foo(p1 As Integer,
p2 As Integer,
p3 As Integer)
End Sub
|
メソッド宣言で「(」の前にラップすることを好む
プロパティ名:
[resharper_] VB 宣言の左かっこの前で折り返す, [resharper_] 宣言の左かっこの前で折り返す
可能な値:
真 | 偽
例:
真 |
|---|
Sub Foo _
(p1 As Integer, p2 As Integer,
p3 As Integer)
End Sub
|
false |
|---|
Sub Foo(p1 As Integer, p2 As Integer,
p3 As Integer)
End Sub
|
呼び出し引数をラップする
プロパティ名:
[resharper_] VB 引数の折り返しスタイル, [resharper_] 引数の折り返しスタイル
可能な値:
wrap_if_long: シンプルラップchop_if_long: ロングまたは複数行の場合はチョップchop_always: 常にチョップ
例:
wrap_if_long |
|---|
SomeMethod(arg1, arg2, arg3, arg4, arg5)
|
chop_if_long |
|---|
SomeMethod(arg1, arg2, arg3, arg4, arg5)
|
chop_always |
|---|
SomeMethod(arg1,
arg2,
arg3,
arg4,
arg5)
|
呼び出しで「(」の前にラップすることを好む
プロパティ名:
[resharper_] VB 呼び出しの左かっこの前で折り返す, [resharper_] 呼び出しの左かっこの前で折り返す
可能な値:
真 | 偽
例:
真 |
|---|
SomeMethod _
(arg1, arg2, arg3, arg4,
arg5)
|
false |
|---|
SomeMethod(arg1, arg2, arg3,
arg4, arg5)
|
拡張・実装・処理リストを折り返す
プロパティ名:
[resharper_] VB Extends リストの折り返しスタイル, [resharper_] Extends リストの折り返しスタイル
可能な値:
wrap_if_long: シンプルラップchop_if_long: ロングまたは複数行の場合はチョップchop_always: 常にチョップ
例:
wrap_if_long |
|---|
Class C
Implements Ifc1, Ifc2,
Ifc3, Ifc4
End Class
|
chop_if_long |
|---|
Class C
Implements Ifc1,
Ifc2,
Ifc3,
Ifc4
End Class
|
chop_always |
|---|
Class C
Implements Ifc1,
Ifc2,
Ifc3,
Ifc4
End Class
|
複数の宣言リストをラップする
プロパティ名:
[resharper_] VB 複数宣言の折り返しスタイル, [resharper_] 複数宣言の折り返しスタイル
可能な値:
wrap_if_long: シンプルラップchop_if_long: ロングまたは複数行の場合はチョップchop_always: 常にチョップ
例:
wrap_if_long |
|---|
Class C
Dim x As Integer = 0,
y As Integer = 1,
s As String = ""
End Class
|
chop_if_long |
|---|
Class C
Dim x As Integer = 0,
y As Integer = 1,
s As String = ""
End Class
|
chop_always |
|---|
Class C
Dim x As Integer = 0,
y As Integer = 1,
s As String = ""
End Class
|
二項式で演算子の前にラップすることを好む
プロパティ名:
[resharper_] VB バイナリ演算子の前で折り返す, [resharper_] バイナリ演算子の前で折り返す
可能な値:
真 | 偽
例:
真 |
|---|
myField1 = expression1 _
+ expression2 _
+ expression3 _
+ expression4 _
+ expression5
|
false |
|---|
myField1 = expression1 +
expression2 +
expression3 +
expression4 +
expression5
|