瀏覽代碼

Add indent_size which is honored by VS2019 and behaves like tab_width (#285)

`indent_size` came before `tab_width` and the latter is basically a fallback for the former, 
as far as I can understand https://github.com/microsoft/vscode-editorconfig/blob/master/src/editorConfigMain.ts#L248. 

However, VS behaves weirdly when one is defined and not the other. It gets the tabs 
completely wrong. If both have the same value, however, it works as expected. So make 
it easy for contributors on VS to contribute by adding this value. 

Hopefully, this will be a no-op on VSM.
Daniel Cazzulino 5 年之前
父節點
當前提交
a7c8594721
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      .editorconfig

+ 2 - 1
.editorconfig

@@ -1,6 +1,7 @@
 [*.cs]
 indent_style = tab
-tab_width = 8 
+indent_size = 8
+tab_width = 8
 csharp_new_line_before_open_brace = methods,local_functions
 csharp_new_line_before_else = false
 csharp_new_line_before_catch = false