Visual studio provide a very good functionality to format your source code automatically. If you code is not well formatted don't worry. just by a single click you can align all code. follow the below steps to do that.
Step 1: Go to Edit menu option
Step 2: Select Advanced and then select Format Document
Step 3: There is another option Format Selection under Advanced , Please not that this is applicable for selected text only, so first select the option and then click on this option.
Shortcut keys for above functionality:
Format Document CTRL + E + D
Format Selection CTRL + E + F
No comments:
Post a Comment