curly bracket doesn't support auto indent anymore

I used to have the behavior in my JetBrains IDE (specifically CLion) that when I typed something like if () { and pressed Enter, it would automatically generate the following:

if () {
   // cursor here
}
But now, the behavior has changed, and it generates:

if () {

// cursor here} 

This change also applies to other constructs like class A{ and while A{. I have already try to restore default setting, but it still doens.t work. How can I restore the previous behavior where pressing Enter would generate the code block with proper indentation?
 

1

请先登录再写评论。