Code::Blocks Forums

User forums => Help => Topic started by: ground-zero on June 26, 2015, 10:45:21 PM

Title: Curly bracket formatting after functions
Post by: ground-zero on June 26, 2015, 10:45:21 PM
Hi,
I have run into a minor problem with the curly bracket formatting after functions.
I like to put the opening bracket at the end of the line, not on its own, like this:

while (true){

}


So to type this i start off with

while (true){}


then put the cursor between the brackets and hit enter - which produces something like the first example with the cursor placed on the middle line.
However when i do this with a function

int main(){}


and do the same, i get

int main(){
}


with no middle line inserted. Its quite a small problem but its annoying me to no end.  I've tested this on v13.12 on both windows 7 and arch linux and both seem to have the same problem. Does anyone know of a fix for this? Thanks.
Title: Re: Curly bracket formatting after functions
Post by: marcelinux on June 27, 2015, 08:11:00 AM
http://www.codeblocks.org/docs/main_codeblocks_en.html
or
http://www.codeblocks.org/docs/main_codeblocks_en.html
can be useful.