简体   繁体   中英

Intellij IDEA does not add end bracket

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM