Visual Studio indentation set to two spaces instead of four space tab

asked8 years ago
last updated3 years ago
viewed19.7k times
Up Vote22Down Vote

I have just opened an old project here at work. Someone appears to have changed the indentation. It's set to 2 spaces instead of four space tabbing. What I have tried:

  1. I tried doing a Ctrl + KD but that hasn't changed it back to proper indentation.
  2. I Deleted the _ReSharper.Caches directory, and a new one is just created, no change to the indentation.

When those didn't work, I have started comparing settings in my visual studio with two different solutions. Resharper settings appear to be identical so are the settings in visual studio.

Which makes me think this must be in one of the project files or something? If it's not an issue with the settings in my visual studio, what's overriding the tabbing? Of note when the project loads I swear it loads with proper indentation and then it's reformatted in the last second. Not sure it matters, but the projects are .net core 1.0 there are three projects in the solution all three appear to be affected. Hope someone has a fix for this; it's really hard to read it like this.