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
which you will find in the menu Edit -> Advanced -> Format document.
The shortcut is Ctrl K, Ctrl D
for the whole document
Ctrl K, Ctrl F
for the section of code you have highlighted