News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Specific Formatting

Started by turbofandude, June 03, 2012, 07:13:36 AM

Previous topic - Next topic

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.