As a C# developer, I have become highly dependent on the automatic formatting in Visual Studio 2008. Specifically, I will use the CTRL + K , D
I suggest using ClangFormat. In order to install, please follow these steps:
You can choose different types of formatting. Also by enabling Format On Save you can gain auto-format capability.