ReSharper 2021.1 Help

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 formattingAfter 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 formattingAfter 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 formattingAfter formatting, value: 0
.blue{color:blue} #error,div.error{color:red}
.blue { color: blue } #error, div.error { color: red }
Before formattingAfter formatting, value: 1
.blue{color:blue} #error,div.error{color:red}
.blue { color: blue } #error, div.error { color: red }
Before formattingAfter 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 formattingAfter formatting, value: 0
.blue{color:blue}#error,div.error{color:red}
.blue { color: blue } #error, div.error { color: red }
Before formattingAfter formatting, value: 1
.blue{color:blue}#error,div.error{color:red}
.blue { color: blue } #error, div.error { color: red }
Before formattingAfter 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: 08 March 2021