EditorConfig 属性用于 Css:换行符
空行
保留现有换行符
属性名称:
[resharper_]css_keep_user_linebreaks, [resharper_]keep_user_linebreaks
可能的值:
true | false
示例:
格式化之前 | 格式化后,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;
}
|
格式化之前 | 格式化后,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;
}
|
声明之间的最大空行数
属性名称:
[resharper_]css_keep_blank_lines_between_declarations, [resharper_]keep_blank_lines_between_declarations
可能的值:
整数
示例:
格式化之前 | 格式化后,值:0 |
|---|---|
.blue{color:blue}
#error,div.error{color:red}
| .blue { color: blue }
#error, div.error { color: red }
|
格式化之前 | 格式化后,值:1 |
|---|---|
.blue{color:blue}
#error,div.error{color:red}
| .blue { color: blue }
#error, div.error { color: red }
|
格式化之前 | 格式化后,值:2 |
|---|---|
.blue{color:blue}
#error,div.error{color:red}
| .blue { color: blue }
#error, div.error { color: red }
|
声明之间的最少空行数
属性名称:
[resharper_]css_min_blank_lines_between_declarations, [resharper_]min_blank_lines_between_declarations
可能的值:
整数
示例:
格式化之前 | 格式化后,值:0 |
|---|---|
.blue{color:blue}#error,div.error{color:red}
| .blue { color: blue }
#error, div.error { color: red }
|
格式化之前 | 格式化后,值:1 |
|---|---|
.blue{color:blue}#error,div.error{color:red}
| .blue { color: blue }
#error, div.error { color: red }
|
格式化之前 | 格式化后,值:2 |
|---|---|
.blue{color:blue}#error,div.error{color:red}
| .blue { color: blue }
#error, div.error { color: red }
|
其它
在文件末尾换行
属性名称:
insert_final_newline, [resharper_]css_insert_final_newline
可能的值:
true | false
最后修改日期: 2025年 12月 8日