User forums > Using Code::Blocks

Specific Formatting

(1/1)

turbofandude:
Hey guys,

Maybe a silly first question, but I recently discovered the wonders of AStyle and the formatting configuration. What a blessing! I come from Visual Studio/Windows, so I am not used to Code::Blocks yet.

I have a formatting configuration question: is there a way I can configure it to place my closing braces in line with the declaration or keyword which opened them?

The settings I have set it as such:

for(int x=0;x<20;x++) {

    }

where as I prefer it

for(int x=0;i<20;x++) {

}

Thanks ahead of time,

--
Collin Biedenkapp

Jenna:
Did you play with the astyle settings in "Settings -> Editor -> Formatting" and probably the autoindent-settings in "Sdettings -> Editor" ?

It looks like the "Java-style" provided by astyle.

Navigation

[0] Message Index

Go to full version