Automatically format code in Visual Studio 2010


2012-01-24

I hope you're not like me and have spent an insane amount of time formatting code in Visual Studio to make it look all nice and pretty. If you are, there's a much easier way!

Select the section of code (or Ctrl+A) and issue Ctrl+K then Ctrl+F to have VS automatically format it for you. So simple! Perhaps we'll all code four times faster now? Maybe...