JetBrains Rider 2021.3 Help

VB.NET - Blank Lines

Preserve existing formatting

Keep max blank lines in declarations

Property names:

[resharper_]vb_keep_blank_lines_in_declarations, [resharper_]keep_blank_lines_in_declarations

Possible values:

an integer

Examples:

Before formatting

After formatting, value: 0

Class SomeClass Public Sub Foo1() End Sub Public Sub Foo2() End Sub End Class
Class SomeClass Public Sub Foo1() End Sub Public Sub Foo2() End Sub End Class

Before formatting

After formatting, value: 1

Class SomeClass Public Sub Foo1() End Sub Public Sub Foo2() End Sub End Class
Class SomeClass Public Sub Foo1() End Sub Public Sub Foo2() End Sub End Class

Before formatting

After formatting, value: 2

Class SomeClass Public Sub Foo1() End Sub Public Sub Foo2() End Sub End Class
Class SomeClass Public Sub Foo1() End Sub Public Sub Foo2() End Sub End Class

Keep max blank lines in code

Property names:

[resharper_]vb_keep_blank_lines_in_code, [resharper_]keep_blank_lines_in_code

Possible values:

an integer

Examples:

Before formatting

After formatting, value: 0

Public Sub Foo() Dim x As Integer Call SomeMethod(x) End Sub
Public Sub Foo() Dim x As Integer Call SomeMethod(x) End Sub

Before formatting

After formatting, value: 1

Public Sub Foo() Dim x As Integer Call SomeMethod(x) End Sub
Public Sub Foo() Dim x As Integer Call SomeMethod(x) End Sub

Before formatting

After formatting, value: 2

Public Sub Foo() Dim x As Integer Call SomeMethod(x) End Sub
Public Sub Foo() Dim x As Integer Call SomeMethod(x) End Sub

Blank lines

After file options section

Property names:

[resharper_]vb_blank_lines_after_options, [resharper_]blank_lines_after_options

Possible values:

an integer

Examples:

value: 0

Option Strict On Option Explicit Off Imports System

value: 1

Option Strict On Option Explicit Off Imports System

value: 2

Option Strict On Option Explicit Off Imports System

After imports section

Property names:

[resharper_]vb_blank_lines_after_imports, [resharper_]blank_lines_after_imports

Possible values:

an integer

Examples:

value: 0

Imports System Namespace N End Namespace

value: 1

Imports System Namespace N End Namespace

value: 2

Imports System Namespace N End Namespace

After global attribute

Property names:

[resharper_]vb_blank_lines_around_global_attribute, [resharper_]blank_lines_around_global_attribute

Possible values:

an integer

Examples:

value: 0

<Assembly: AssemblyTitle("")> <Assembly: AssemblyDescription("")>

value: 1

<Assembly: AssemblyTitle("")> <Assembly: AssemblyDescription("")>

value: 2

<Assembly: AssemblyTitle("")> <Assembly: AssemblyDescription("")>

Around namespace

Property names:

[resharper_]vb_blank_lines_around_namespace, [resharper_]blank_lines_around_namespace

Possible values:

an integer

Examples:

value: 0

Namespace N1 End Namespace Namespace N2 End Namespace

value: 1

Namespace N1 End Namespace Namespace N2 End Namespace

value: 2

Namespace N1 End Namespace Namespace N2 End Namespace

Around type

Property names:

[resharper_]vb_blank_lines_around_type, [resharper_]blank_lines_around_type

Possible values:

an integer

Examples:

value: 0

Class C1 End Class Class C2 End Class

value: 1

Class C1 End Class Class C2 End Class

value: 2

Class C1 End Class Class C2 End Class

Around multiline field

Property names:

[resharper_]vb_blank_lines_around_field, [resharper_]blank_lines_around_field

Possible values:

an integer

Examples:

value: 0

Class C Public Dim x As Integer, y As Integer Public Dim i As String, j As String End Class

value: 1

Class C Public Dim x As Integer, y As Integer Public Dim i As String, j As String End Class

value: 2

Class C Public Dim x As Integer, y As Integer Public Dim i As String, j As String End Class

Around single line field

Property names:

[resharper_]vb_blank_lines_around_single_line_field, [resharper_]blank_lines_around_single_line_field

Possible values:

an integer

Examples:

value: 0

Class C Public Dim x As Integer Public Dim i As String End Class

value: 1

Class C Public Dim x As Integer Public Dim i As String End Class

value: 2

Class C Public Dim x As Integer Public Dim i As String End Class

Around multiline method

Property names:

[resharper_]vb_blank_lines_around_invocable, [resharper_]blank_lines_around_invocable

Possible values:

an integer

Examples:

value: 0

Class C Sub Foo1 End Sub Sub Foo2 End Sub End Class

value: 1

Class C Sub Foo1 End Sub Sub Foo2 End Sub End Class

value: 2

Class C Sub Foo1 End Sub Sub Foo2 End Sub End Class

Around single line method

Property names:

[resharper_]vb_blank_lines_around_single_line_invocable, [resharper_]blank_lines_around_single_line_invocable

Possible values:

an integer

Examples:

value: 0

Interface I Sub Foo1 Sub Foo2 End Interface

value: 1

Interface I Sub Foo1 Sub Foo2 End Interface

value: 2

Interface I Sub Foo1 Sub Foo2 End Interface

Around region

Property names:

[resharper_]vb_blank_lines_around_region, [resharper_]blank_lines_around_region

Possible values:

an integer

Examples:

value: 0

Class C Dim x as Integer #Region "Description" Dim y as Integer #End Region Dim z as Integer End Class

value: 1

Class C Dim x as Integer #Region "Description" Dim y as Integer #End Region Dim z as Integer End Class

value: 2

Class C Dim x as Integer #Region "Description" Dim y as Integer #End Region Dim z as Integer End Class

Inside region

Property names:

[resharper_]vb_blank_lines_inside_region, [resharper_]blank_lines_inside_region

Possible values:

an integer

Examples:

value: 0

Class C Dim x as Integer #Region "Description" Dim y as Integer #End Region Dim z as Integer End Class

value: 1

Class C Dim x as Integer #Region "Description" Dim y as Integer #End Region Dim z as Integer End Class

value: 2

Class C Dim x as Integer #Region "Description" Dim y as Integer #End Region Dim z as Integer End Class
Last modified: 07 April 2022