Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: turbofandude on June 03, 2012, 07:13:36 am

Title: Specific Formatting
Post by: turbofandude on June 03, 2012, 07:13:36 am
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
Title: Re: Specific Formatting
Post by: Jenna on June 03, 2012, 09:58:06 am
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.