Visual Studio Keyboard Shortcut to auto-format a document

Its a wonderful shortcut when you come across someone who has written some code for you and not used the tab key at all.

Open the document

Press Ctrl + K + D

and by the wonders of the html, css and asp.net engine in Visual Studio the document is automatically formatted.

RMTWeb

www.rmtweb.co.uk

RMTWeb - blogging, solving complex technical problems and queries, putting the world to rights and general musings since 1991. Now using a 4G connection that is 5,547 times faster than when writing my first post using a 14.4Kbit modem!

Leave a Reply