Astyle

Handy tool to format code.

Get it here :-

http://visualstudiogallery.msdn.microsoft.com/2f3f04cd-2866-4e47-a671-d1cc9cc3fb02

https://code.google.com/p/astyle-extension/

http://astyle.sourceforge.net/

Astyle settings :

I use this setting for C/C++

–style=kr –indent=tab=4 –indent-classes –indent-switches –indent-cases –indent-namespaces –break-blocks –break-blocks=all –pad-oper –pad-paren –add-brackets –add-one-line-brackets –mode=c

–style=kr –indent=tab=4 –indent-classes –indent-switches –indent-cases –indent-namespaces –break-blocks –break-blocks=all –pad-oper –pad-paren –add-brackets –add-one-line-brackets –mode=c