There's probably a more direct way, but I'm lazy so...
One way to do it is to select the code you want auto-formatted, then cut
it and immediately paste it right back where it was. That is, just type
Ctrl-X followed by Ctrl-V. The default setting in VS is to auto-formaton
paste.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.