How to format your document in visual studio

I was getting angry today because some code I pasted into Visual studio was a complete mess.

I was searching for the formatter but I couldn’t see it anywhere.

I eventually found the format document hidden in the Advanced tab!!!  what is so advanced about formatting some code I ask you

Instructions
which you will find in the menu Edit -> Advanced -> Format document.

The shortcut is Ctrl K, Ctrl D

for the whole document

or

Ctrl K, Ctrl F

for the section of code you have highlighted

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.