Author Topic: Curly bracket formatting after functions  (Read 2421 times)

ground-zero

  • Guest
Curly bracket formatting after functions
« 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:
Code
while (true){

}

So to type this i start off with
Code
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
Code
int main(){}

and do the same, i get
Code
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.

Offline marcelinux

  • Multiple posting newcomer
  • *
  • Posts: 10
I just need learn a little bit more. Thank you for your help.