Monday, June 13, 2011

Shortcut keys to format document in visual studio

To format any document (.cs,XML,aspx,HTML etc) in visual studio 2008

use the following key combinations:




To format whole document : ctrl +k ,(followed by) ctrl + d,
To format the selection : ctrl +k, (followed by) ctrl +f,
To format whole document of .aspx :ctrl+e, d


CTRL+M CTRL+O - Collapse all regions not recursively


CTRL+M CTRL+M (that's two key presses!) - collapse/open the current parent regionCTRL+M CTRL+L - Collapse/Open all regions in document recursively (meaning you might get only one line in the document - one big namespace region which is collapsed or you'll see the entire page code uncollapsed

0 comments:

Popular Posts

Recent Posts

Unordered List

Text Widget