However, when creating a new C# class, the newly created file still uses spaces.
Any code added into the class will use tabs due to C# auto-formatting, so the resulting code file will usually be a mixture of tabs and spaces :(
I think the templates shipping with VS should respect the indentation setting.
Ported from https://developercommunity.visualstudio.com/content/problem/114359/creating-new-file-does-not-respect-editorconfig-ta.html
Also :link: Formatting Code when adding Item
Also :link: Formatting of init class after adding new class library into project
I have an .editorconfig file that specifies:
[*] indent_style = tab indent_size = 4
However, when creating a new C# class, the newly created file still uses spaces. Any code added into the class will use tabs due to C# auto-formatting, so the resulting code file will usually be a mixture of tabs and spaces :(
I think the templates shipping with VS should respect the indentation setting.