From a7c8594721d0996029470ff6e83db2e1e7822d07 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Fri, 1 Nov 2019 22:35:23 -0300 Subject: [PATCH] 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. --- .editorconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index eb2cc0cea..3ad2ee46d 100644 --- a/.editorconfig +++ b/.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