Question : 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?

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

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
Random Solutions  
 
programming4us programming4us