Formatting your code in VS.NET

The VS.NET IDE has built-in code formatting that you can use from the keyboard or menu.

This tip was submitted to the VS.NET Info Center by member Marc Cramer. Please let other users know how useful it is by rating it below. Do you have an interesting .NET time-saver, troubleshooting technique, shortcut or code snippet of your own you'd like to share? Submit it here.


The VS.NET IDE has built-in code formatting that you can use from the keyboard or menu. This is what IDE uses to clean up the formatting of your code.

From the keyboard: Ctrl-K and then press Ctrl-D

From the menu: Edit-> Advanced -> Format Document

This was last published in April 2003

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

SearchSOA

TheServerSide

SearchCloudApplications

Close