> How to enable the auto indent function in visual studio?
> For example:
[quoted text clipped - 10 lines]
>
> Thanks.
Try this (but, I'm mystified why it isn't happening for you by default. It
does for me.)
For the entire file: Edit->Advanced->Format Document (also Ctrl-K, Ctrl-D)
For the selected text: Edit->Advanced->Format Selection (also Ctrl-K,
Ctrl-F)