• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1564
  • Last Modified:

How do you tell visual studio to reindent all code so you can match up the "if/else" "while", and strucs like that

I have pasted in some code and I am either missing a bracket or have to many brackets and not sure where things are supposed to line up.  Is there any way to tell Visual Studio to reindent all the code?
0
kwh3856
Asked:
kwh3856
1 Solution
 
ken_thaiCommented:
Ctrl + A

Then

Ctrl + E  follow by Ctrl + D

Or simply go to Edit --> Advance --> Format Document

This will use your format setting in the Tool --> Option --> Text Editor --> your language

I assume you have Visual Studio install. This is in VS2008, might be slightly different in VS 2005
0
 
kwh3856Author Commented:
Thank you very much.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now