Did you know that Visual Studio provides for automatic formatting of code? This is extremely handy if you have imported code using the clipboard and the formatting didn't work out right... It's under the Edit | Advanced | Format Document option, or just CTRL+D.
What a time saver! Give it a try and let me know if it helps you out.