I installed Visual Studio 2013 in "Insert Spaces" in "Tools" → "Options" → "Text Editor" → "All Languages → Tabs". The settings of Text Editor → C # → Tabs are also set to "Insert spaces". When I open a C # file and use the tab key, then VS saves the tab instead of inserting spaces. If I go back to Tools -> Options -> Text Editor -> C # -> Tabs and switch to "Keep tabs", click "OK" and then go back and change it to "Insert spaces", then VS will start using spaces. If I close VS and open a C # file, then VS uses tabs again. I need to go back and select “Keep tabs”, click “OK”, and then go back and return “Insert spaces” so that it works again.
Also, when VS saves the tabs, if I end the statement with a semicolon or close the block with a bracket, then the tabs that VS uses are then replaced with spaces. Or, if I reformat the code, it will change all tabs to spaces. Any ideas on why VS is initialized using tabs?
In addition, I use Resharper. Resharper is also configured to use spaces. When I pause Resharper, I experience the same behavior in VS, so I don't think the Resharper problem is causing the problem.
chris source
share