Organize contents in file

Rearrange all elements of file properly

Organize contents in file

While working in Visual Studio we use to place elements randomly anywhere in code. And then it makes the code unreadable. You try to manage it by hand but it is of no use. And for big file it takes lot of time & decrease your productivity. For example see below:


So for rearranging all elements properly use command Ctrl + K + D together from Keyboard. It will make your document readable. It works in .aspx, .config, .cs and any file in Visual Studio. See below after organizing:


Hope it helps!


Author: Ananta21 May 2010 Member Level: Gold   Points : 0

nice article


Author: Vikram Singh Saini21 May 2010 Member Level: Gold   Points : 1

Hello Ananta,

Thanks for appreciating and positive feedback.


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: