Shortcut keys to format document in visual studio
To format any document (.cs,XML,aspx,HTML etc) in visual studio 2008use 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 recursivelyCTRL+M CTRL+M (that's two key presses!) - collapse/open the current parent regionCTRL+M...