Indent in 'if' block after Enter
已回答
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.
请先登录再写评论。
Hi there,
Activating "Settings/Preferences | Editor | Smart Keys | Enter -> Smart Indent" option should do the job.
Andriy Bazanov, thank you, works like a charm!