Code Formatting with Visual Studio 2005

Jay just showed me a really cool productivity tip in VS.NET 2005.  In our project, the client likes the open brace { on the same line as the class, method, and code block.  By default, VS.NET 2005 will place the open brace on its own line. 

Configuring VS.NET 2005 to go along with the client's formatting method was a cinch.  Just change the new formatting settings under Tools/Options like so:



Now I can just hit Ctrl-A, Ctrl-K, then Ctrl-F to format the current code file with the new formatting.  I wonder if I can apply this formatting style to all the c# files in the solution in one swell swoop.
posted on Wednesday, October 12, 2005 4:46 PM by AlanL

Comments

# re: Code Formatting with Visual Studio 2005

Wednesday, November 09, 2005 3:13 PM by Dunc
Also possible in VS2003