ReSharper 2025.2 Help

EditorConfig 属性用于 Css:制表符和缩进

制表符和缩进

缩进样式

属性名称:

indent_style[resharper_]css_indent_style

可能的值:

  • tab: 制表符

  • space: 空格

示例:

制表符

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; }

缩进大小

属性名称:

indent_size[resharper_]css_indent_size

可能的值:

一个整数

示例:

值:0

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

值:1

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

值:2

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

制表符宽度

属性名称:

tab_width[resharper_]css_tab_width

可能的值:

一个整数

示例:

值:0

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

值:1

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

值:2

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

制表符用于缩进时如何对齐

属性名称:

[resharper_]css_alignment_tab_fill_style[resharper_]alignment_tab_fill_style

可能的值:

  • use_spaces: 使用空格(在任何制表符大小下看起来都对齐)

  • use_tabs_only: 仅使用制表符(不准确)

  • optimal_fill: 混合使用制表符和空格以实现最佳填充

最后修改日期: 2025年 9月 27日