ReSharper 2025.3 ヘルプ

VB.NET の EditorConfig プロパティ: 改行

既存のフォーマットを保持する

既存の改行を維持する

プロパティ名:

[resharper_]vb_keep_user_linebreaks , [resharper_]keep_user_linebreaks

使用可能な値:

true | false

例:

フォーマット前

フォーマット後 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_place_type_attribute_on_same_line

使用可能な値:

true | false

例:

true

<SomeAttribute> Class C End Class

false

<SomeAttribute> Class C End Class

メソッド属性を同じ行に配置する

プロパティ名:

[resharper_]vb_place_method_attribute_on_same_line

使用可能な値:

true | false

例:

true

<SomeAttribute> Sub Foo End Sub

false

<SomeAttribute> Sub Foo End Sub

プロパティ属性を同じ行に配置する

プロパティ名:

[resharper_]vb_place_property_attribute_on_same_line , [resharper_]place_property_attribute_on_same_line

使用可能な値:

true | false

例:

true

<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_place_event_attribute_on_same_line , [resharper_]place_event_attribute_on_same_line

使用可能な値:

true | false

例:

true

<SomeAttribute> Public Event MyEvent()

false

<SomeAttribute> Public Event MyEvent()

フィールド属性を同じ行に配置する

プロパティ名:

[resharper_]vb_place_field_attribute_on_same_line

使用可能な値:

true | false

例:

true

Class C <SomeAttribute> Dim x As Integer End Class

false

Class C <SomeAttribute> Dim x As Integer End Class

行折り返し

次でハードラップ

プロパティ名:

max_line_length , [resharper_]vb_max_line_length

Right margin (columns)

使用可能な値:

整数

仮パラメーターをラップする

プロパティ名:

[resharper_]vb_wrap_parameters_style , [resharper_]wrap_parameters_style

使用可能な値:

  • 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_wrap_before_declaration_lpar , [resharper_]wrap_before_declaration_lpar

使用可能な値:

true | false

例:

true

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_wrap_arguments_style , [resharper_]wrap_arguments_style

使用可能な値:

  • 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_wrap_before_invocation_lpar , [resharper_]wrap_before_invocation_lpar

使用可能な値:

true | false

例:

true

SomeMethod _ (arg1, arg2, arg3, arg4, arg5)

false

SomeMethod(arg1, arg2, arg3, arg4, arg5)

ラップの拡張 / 実装 / リストの処理

プロパティ名:

[resharper_]vb_wrap_extends_list_style , [resharper_]wrap_extends_list_style

使用可能な値:

  • 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_wrap_multiple_declaration_style , [resharper_]wrap_multiple_declaration_style

使用可能な値:

  • 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_wrap_before_binary_opsign , [resharper_]wrap_before_binary_opsign

使用可能な値:

true | false

例:

true

myField1 = expression1 _ + expression2 _ + expression3 _ + expression4 _ + expression5

false

myField1 = expression1 + expression2 + expression3 + expression4 + expression5
2024 年 5 月 26 日