Indent in 'if' block after Enter

Answered

Hello.

 

I have a problem with auto-indent in blocks of code (function declaration, if block or loop block).

 

For example, when I typing if condition (symbol | is where cursor stands):

if (true) {|}

and then press enter I have this:

if (true) {
|}

but I want this:

if (true) {
|
}

 

What should I check in settings?

Thanks.

0
2 comments

Hi there,

Activating "Settings/Preferences | Editor | Smart Keys | Enter -> Smart Indent" option should do the job.

2

Andriy Bazanov, thank you, works like a charm!

0

Please sign in to leave a comment.