I am not sure if I completely understand what (or even if) the problem is; could you please:
a. Post a snippet of code that you enter. (Using code tags.)
b. Post a snippet of code showing what (if anything) Code::Blocks does to change/auto-format it. (Using code tags.)
and
c. Post a snippet of code showing what it is you would have liked Code::Blocks to have changed/auto-formatted it to. (And again, using code tags.)
I am willing to look into this when I have time (I have messed around with that part of the code recently
, so I think I know my way around it), but simply do not know what I am supposed to be trying to fix it to do.