How to automatically indent source code?
How can I automatically indent source code in Visual Studio 2010?
I have used Ctrl + K, Ctrl + F, but it does not work; is there any other way/plugin to do this?
Ctrl+E, D - Format whole doc
Ctrl+K, Ctrl+F - Format selection
Also available in the menu via Edit|Advanced.
Thomas
Edit-
Ctrl+K, Ctrl+D - Format whole doc in VS 2010
In 2010 it is Ctrl+k, Ctrl+d. See image below.
In Visual Studio 2010
Ctrl +k +d indent the complete page.
Ctrl +k +f indent the selected Code.
For more help visit : http://msdn.microsoft.com/en-us/library/da5kh0wa.aspx
every thing is there.
In 2010 it is ctrl +k +d for indentation