News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Curly bracket formatting after functions

Started by ground-zero, June 26, 2015, 10:45:21 PM

Previous topic - Next topic

ground-zero

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.

marcelinux

I just need learn a little bit more. Thank you for your help.