Home > Software design >  Intellij IDEA does not add end bracket
Intellij IDEA does not add end bracket

Time:08-25

Before, I used to be able to type if (...) { press enter, and it would add the end bracket like this

if (...) {
    
}

now I press enter, and it does not add the end bracket, instead it leaves me like this

if (...) {
    

How can I enable end bracket completion again?

CodePudding user response:

Settings (Preferences on macOS) | Editor | General | Smart Keys | Enter | Insert pair '}'.

  • Related