Alex Rivera | Logout

Can't disable method parenthesis auto-complete in Eclipse

Asked 2010-05-16T12:40:26.713
30

I'm trying to disable the automatic closing of brackets in Eclipse, and while I've mostly succeeded, I can't stop the editor from inserting a closing parenthesis for a method call. The result is that when I type:

myBool.equals(true);

it inserts a closing parenthesis as soon as I type the opening parenthesis, and what I actually get is:

myBool.equals(true);)

I've disabled all of the auto-complete options in the Preferences -> Java -> Editor -> Typing menu, as well as Preferences -> Java -> Editor -> Content Assist -> Fill method arguments and show guessed arguments. I also disabled the smart insert mode option under the Edit menu. Is there another option somewhere else I need to use to stop Eclipse from doing this?

This is with Eclipse 3.5.2 (Build ID M20100211-1343) in case it matters.

Edited to add: I should also mention that this only happens if I wait for the "intellisense" pop-up with suggested method names to appear after I type the period. If I just continuously type the code without waiting for the suggestion box to appear, the closing parenthesis doesn't get inserted.

Edit
Report

1 Answer

5

If I understand the problem correctly, here is the solution! I had the same problem.

Main Menu | Window | Preferences | <The language you are using> | Editor | Typing

In the section "Automatically close," uncheck the options you don't want.

I don't know if this functionality is new. I just started using Eclipse again and haven't ever used it much.

I found the answer on this stackoverflow page.

answered 2012-01-29T03:03:26.117

Your Answer