Style of braces placement

Hello. Now if we press "Enter" at the point where cursor is

if {|}

we got

if {
  |
}


Please, give me the advice how to change this behavior to

if
{
  |
}


In attach my current "Code style -> Wrapping and braces" settings.



Attachment(s):
code-style.jpg
1 comment
Comment actions Permalink

Hello Brabus Brabus,

I am afraid that this behaviour is not supposed.

Try to use 'Surrond with' editor action for writing 'if' statement:

Select code fragment:
surround_with_statements.png
Invoke Surround with action (Ctrl + Alt + T on Windows) and select 'if' item:
surround_with_if.png

Result:
result.png

Thank you for feedback!

0

Please sign in to leave a comment.