JetBrains Rider 2018.1 Help

Razor CSharp - CodeStyle

Line breaks around Razor statements

Property names:

[resharper_]html_linebreaks_around_razor_statements, [resharper_]linebreaks_around_razor_statements

Possible values:

true | false

Examples:

true
something @if·(a·==·1)·{ ····@:·SomeText } something
false
something·@if·(a·==·1)·{ ····@:·SomeText }·something

Blank lines around Razor @functions block

Property names:

[resharper_]html_blank_lines_around_razor_functions, [resharper_]blank_lines_around_razor_functions

Possible values:

an integer

Examples:

value: 0
something @functions·{ ··int·Count()·{·return·1;·} } something
value: 1
something @functions·{ ··int·Count()·{·return·1;·} } something
value: 2
something @functions·{ ··int·Count()·{·return·1;·} } something

Blank lines around Razor helpers

Property names:

[resharper_]html_blank_lines_around_razor_helpers, [resharper_]blank_lines_around_razor_helpers

Possible values:

an integer

Examples:

value: 0
something @helper·Aaa()·{ ····@:·smth } something
value: 1
something @helper·Aaa()·{ ····@:·smth } something
value: 2
something @helper·Aaa()·{ ····@:·smth } something

Blank lines around Razor sections

Property names:

[resharper_]html_blank_lines_around_razor_sections, [resharper_]blank_lines_around_razor_sections

Possible values:

an integer

Examples:

value: 0
something @section·scripts·{·sdsds·} something
value: 1
something @section·scripts·{·sdsds·} something
value: 2
something @section·scripts·{·sdsds·} something
Last modified: 21 June 2018