Found a useful tip when I looking for StyleCop essay.
In brief, do these:
- Select the code you want to re-format (CTRL + A if want to re-format whole file).
- Press CTRL + K
- Press CTRL + F
If work in VB.Net, it will auto set TitleCase and align the code, however in C#, it only re-align the code, but this is the feature I like the most since C# code never align for you again if the alignment was out.
Reference: How to: Reformat your code in Visual Studio
Keyword: Alignment, align, code style