ReSharper 2022.3 Help

EditorConfig properties for Css: Line Breaks

Blank lines

Keep existing line breaks

Property names:

[resharper_]css_keep_user_linebreaks, [resharper_]keep_user_linebreaks

Possible values:

true | false

Examples:

Before formatting

After formatting, true

a, br, body, p, font, div { color: blue; font: small; background-color:transparent; padding: 0 0 0 0; }
a, br, body, p, font, div { color: blue; font: small; background-color: transparent; padding: 0 0 0 0; }

Before formatting

After formatting, false

a, br, body, p, font, div { color: blue; font: small; background-color:transparent; padding: 0 0 0 0; }
a, br, body, p, font, div { color: blue; font: small; background-color: transparent; padding: 0 0 0 0; }

Max blank lines between declarations

Property names:

[resharper_]css_keep_blank_lines_between_declarations, [resharper_]keep_blank_lines_between_declarations

Possible values:

an integer

Examples:

Before formatting

After formatting, value: 0

.blue{color:blue} #error,div.error{color:red}
.blue { color: blue } #error, div.error { color: red }

Before formatting

After formatting, value: 1

.blue{color:blue} #error,div.error{color:red}
.blue { color: blue } #error, div.error { color: red }

Before formatting

After formatting, value: 2

.blue{color:blue} #error,div.error{color:red}
.blue { color: blue } #error, div.error { color: red }

Min blank lines between declarations

Property names:

[resharper_]css_min_blank_lines_between_declarations, [resharper_]min_blank_lines_between_declarations

Possible values:

an integer

Examples:

Before formatting

After formatting, value: 0

.blue{color:blue}#error,div.error{color:red}
.blue { color: blue } #error, div.error { color: red }

Before formatting

After formatting, value: 1

.blue{color:blue}#error,div.error{color:red}
.blue { color: blue } #error, div.error { color: red }

Before formatting

After formatting, value: 2

.blue{color:blue}#error,div.error{color:red}
.blue { color: blue } #error, div.error { color: red }

Other

Line feed at end of file

Property names:

insert_final_newline, [resharper_]css_insert_final_newline

Possible values:

true | false

Last modified: 28 December 2022