How to put the caret (cursor) in the right position?

1

When I create a new method, it looks like this:

void teste(){|}

Notice that the cursor is between {} , and when I press enter it looks like this:

void teste(){
|}

Now the cursor is behind } , and that's my problem. Ideally, the cursor behaves the same way it does when I use the if() method, which looks like this:

if(){|}

And when I press enter:

if(){
   |
}

Notice that the cursor is now exactly where I begin to write my code. How do I make this, what happens in if() , happen to any method I create? How to change this cursor behavior?

I'm using codeblocks 16.01,

    
asked by anonymous 14.10.2016 / 15:25

0 answers