1. To reindent you code in MSVC IDE just type Ctrl-A and then Alt-F8.