Adam Conroy
Adam Conroy

Reputation: 411

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

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.

Upvotes: 41

Views: 15809

Answers (2)

Triple Lutz
Triple Lutz

Reputation: 29

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

Upvotes: 0

CrazyCoder
CrazyCoder

Reputation: 402493

Disable Insert pair bracket:

Insert pair bracket

Upvotes: 40

Related Questions