I’m working on a couple of different things and some use tabs, some use 2 spaces for indents, another users 4 spaces for indents etc.
The option to set this in Visual Studio is in Tools->Options->Text Editor-><language>->Tabs
Is there some way to override these settings on a per solution bases?
Here is one (admittedly hacky) way to achieve what you are looking for:
1) create a macro that changes the indentation (source)
2) Hook that up with your solution loading:
In the macro explorer, choose
EnvironmentEvents, selectSolutionEventsin the first drop-down,Openedin the second.You now have a macro that will trigger every time you open a solution.
You just need to map your solutions to the required indentation.