It happens sometimes to switch between codebases using different strategy for indentantion, in term of using pure tabs or spaces instead of tab. Since each codebase reasonably want to preserve the coding style, the developer has to remember to switch to the proper setting each time he change the project he’s working on. Is there some way to do this automatically, or having the setting saved as a property on the project/solution ?
It happens sometimes to switch between codebases using different strategy for indentantion, in term
Share
VS, out-of-the-box, only supports per-user-per-machine settings, including code formatting.
There are third-party add-ins that enable per-project settings. This example add-in provides support for VS2008.
Another option is to perform the formatting externally, one option is “Uncrustify”, which is blogged about here.