Ever been typing in the editor, and for whatever reason, the text isn’t indented properly on the line?  Instead of manually pressing backspace or tab for each line of text, just press Ctrl+K, Ctrl+D, which does a Format Document.

For larger files, you might just want to select the region that isn’t justified correctly, and do Ctrl+K, Ctrl+F.  This keyboard shortcut will also format the current line – no selection needed.

These commands are found under the Edit – Advanced menu

Format Document menu items

Technorati tags: VS2005Tip, VS2008Tip