alanmc wrote:
Visual studio has its own auto-aligning code with works with 4 spaces (not three).
The problem is that the code you've written isn't valid code, there's missing comma's and suchlike. This confuses the VS auto-aligner, and you end up with misaligned code. (at least, thats what i think is happening)
Fix the code errors and then you're code will align correctly. To force VS to realign the code, just remove and add in the "closing" curly brace at the end of methods, and that method will realign etc
the indent is a user option, default is 4 but can be changed, I use 3 in my code.
a quick look at the code seems ok. I think vs just did not re-format part of it the way he wants it.
BTW: there are settings where you can "teach" vs how to re-format some things the way you want them.
I think what I saw was his printf() that uses 2 lines was not the way he wanted it
the continued line was out-dented and not lined up with the first line's quoted text.