Auto-Format VS2010 Source Code
May 27, 2010
posted by Brad Kingsley
This nifty trick has apparently existed since at least VS2005 but I just learned it, and it is super-handy, so I'll share...
When in source code view of a page you can press control-K then control-D and the code will auto clean-up and format with standard indenting and nesting.
Being able to crank through code without much concern to the visual aesthetics and then auto-format it later is a huge time saver for me. Hopefully this tip helps you too.
Happy hosting!












