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.
Please sign in to leave a comment.
Hi there,
Activating "Settings/Preferences | Editor | Smart Keys | Enter -> Smart Indent" option should do the job.
Andriy Bazanov, thank you, works like a charm!