JetBrains Rider 2026.1 Help

VB.NET 的 EditorConfig 属性:制表符和缩进

制表符和缩进

缩进样式

属性名称:

indent_style, [resharper_]vb_indent_style

可能的值:

  • tab :制表符

  • space :空格

示例:

tab

Namespace N Class C End Class End Namespace

space

Namespace N Class C End Class End Namespace

缩进大小

属性名称:

indent_size, [resharper_]vb_indent_size

可能的值:

整数

示例:

值:0

Namespace N Class C End Class End Namespace

值:1

Namespace N Class C End Class End Namespace

值:2

Namespace N Class C End Class End Namespace

制表符宽度

属性名称:

tab_width, [resharper_]vb_tab_width

可能的值:

整数

示例:

值:0

Namespace N Class C End Class End Namespace

值:1

Namespace N Class C End Class End Namespace

值:2

Namespace N Class C End Class End Namespace

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

属性名称:

[resharper_]vb_alignment_tab_fill_style, [resharper_]alignment_tab_fill_style

可能的值:

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

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

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

2026年 3月 25日