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
You can use Command + A to select all content and next Ctrl + I to format the selected content.