How do I turn off auto-parenthesis generation in Intellij IDEA?

余生颓废 提交于 2019-12-04 15:13:15

问题


When typing a function name (or auto completing) IDEA automatically puts the parentheses after it and puts the cursor between them: foo(|)

I greatly dislike this and would much prefer it let me type the parentheses myself. Is there any way to do this?

Update:

Re: "Insert Pair Bracket" setting:

So, this option is turned off already for me. I just tested and found out that this ONLY happens in Actionscript files. In Java it only gives me the ( character and it lets my type over it. In Actionscript it automatically puts both parens no matter what I do. Might have to look deeper into the plugin.


回答1:


Disable Insert pair bracket:




回答2:


I had this problem also but I found the magical switch to disable it. Within Intellij settings, go to: Settings->Clojure (For current project) and you will see a setting checked called: "Use structural editing". Just un-check this option checkbox and you will not have auto-closing paren for a new open paren.

Jeff



来源:https://stackoverflow.com/questions/9103779/how-do-i-turn-off-auto-parenthesis-generation-in-intellij-idea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!