Thursday, July 24, 2008

Have you ever gotten code from someone or somewhere and you were not “thrilled” with how it was formatted. Was it just formatted wrong? Then the “Format Document” keyboard shortcut is for you! It will take the file you have open and format all the code until it is valid. Personally I wish their was a “Format Document for Chris Craft” keyboard shortcut because Visual Studio is a lot more forgiving than I am. But that’s okay it is still a life saver and you will love it one day when it just make the code better, all in one simple keyboard shortcut.

Format Document

Ctrl + K, Ctrl + D

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)

image


Thursday, July 24, 2008 16:36:00 (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |  Trackback

Theme design by Jelle Druyts

Pick a theme: