ReSharper 2017.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 formatting After formatting, true
abrbody, pfontdiv·{ ··colorblue; ··font:·small; ··background-color:transparent; ··padding: ···········0 ···········0 ···········0 ···········0; }
abrbody, pfontdiv·{ ··colorblue; ··font:·small; ··background-colortransparent; ··padding: ·········0 ·········0 ·········0 ·········0; }
Before formatting After formatting, false
abrbody, pfontdiv·{ ··colorblue; ··font:·small; ··background-color:transparent; ··padding: ···········0 ···········0 ···········0 ···········0; }
abrbodypfontdiv·{ ··colorblue; ··fontsmall; ··background-colortransparent; ··padding0; }

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·colorblue·} #errordiv.error·colorred·}
Before formatting After formatting, value: 1
.blue{color:blue} #error,div.error{color:red}
.blue·colorblue·} #errordiv.error·colorred·}
Before formatting After formatting, value: 2
.blue{color:blue} #error,div.error{color:red}
.blue·colorblue·} #errordiv.error·colorred·}

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·colorblue·} #errordiv.error·colorred·}
Before formatting After formatting, value: 1
.blue{color:blue}#error,div.error{color:red}
.blue·colorblue·} #errordiv.error·colorred·}
Before formatting After formatting, value: 2
.blue{color:blue}#error,div.error{color:red}
.blue·colorblue·} #errordiv.error·colorred·}

Other

Line feed at end of file

Property names:

css_insert_final_newline, insert_final_newline

Possible values:

true | false

Last modified: 4 July 2017