Skip to main content



      Home
Home » Newcomers » Newcomers » Auto-closing of parentheses cannot be disabled.
Auto-closing of parentheses cannot be disabled. [message #520974] Mon, 15 March 2010 21:49 Go to next message
Eclipse UserFriend
I'm using build 20100218-1602 of Eclipse under MacOSX, although the problem I'm about to describe has existed under several other earlier versions that I have used on various OS's.

I want to disable the automatic closing of parentheses, but the setting that controls this doesn't seem to work. When I type an open paren after a function name, Eclipse always immediately puts a close paren to the right of it, even when the following setting is unchecked:

Preferences->Java->Editor->Typing->Automatically close
(Parentheses), [square], and <angle> brackets.


I know that there is a difference of opinion as to whether auto-closing of parentheses is desirable, and I'm sure that this is the reason for why the behavior is controlled by an option.

But the option doesn't work.

Is there another setting somewhere in the IDE which controls this?

Or is there perhaps a property I can set outside of the IDE which can turn off this auto-close behavior?

Thanks in advance for any suggestions.



[Updated on: Mon, 15 March 2010 21:50] by Moderator

Re: Auto-closing of parentheses cannot be disabled. [message #520976 is a reply to message #520974] Mon, 15 March 2010 22:09 Go to previous messageGo to next message
Eclipse UserFriend
I just now figured out that this auto-close behavior seems to be related to proposals.

If Eclipse knows something about the function or method whose invocation I'm typing, the close parenthesis seems to be placed in conjunction with the proposal pop-up.

For example, if I enter the following, a proposal for the argument pops up and the parenthesis is closed:

System.exit(

However, if no items called "foo" are in scope, no close parenthesis is inserted when I type this (and no proposal pops up, of course):

foo(

So is there any way tell Eclipse that I still want to see proposals, but I don't want these parentheses to be closed?


[Updated on: Mon, 15 March 2010 22:12] by Moderator

Re: Auto-closing of parentheses cannot be disabled. [message #539611 is a reply to message #520976] Fri, 11 June 2010 09:27 Go to previous messageGo to next message
Eclipse UserFriend
HippoMan wrote:
> I just now figured out that this auto-close behavior seems to be
> related to proposals.
>
> If Eclipse knows something about the function or method whose
> invocation I'm typing, the close parenthesis seems to be placed in
> conjunction with the proposal pop-up.
>
> For example, if I enter the following, a proposal for the argument
> pops up and the parenthesis is closed:
>
> System.exit(
>
> However, if there are no items called "foo" that are in scope, no
> close parenthesis pops up when I type this (and no proposal, of course):
>
> foo(
>
> So is there any way tell Eclipse that I still want to see proposals,
> but I don't want these parentheses to be closed?
No.

Dani
Re: Auto-closing of parentheses cannot be disabled. [message #640325 is a reply to message #539611] Sat, 20 November 2010 10:56 Go to previous message
Eclipse UserFriend
I'm following up on this after a long absence.

I understand that I'm stuck with that horrible (IMHO) auto-inserted close parenthesis when proposals are enabled. I guess I just have to live with this "feature".

But I thought of a possible way to reduce my discomfort: is there a way to disable only the method argument proposals, but to keep all the other proposals enabled?

Thanks in advance.


Previous Topic:Initial Setup
Next Topic:java eclipse 3.2
Goto Forum:
  


Current Time: Fri Nov 07 15:00:09 EST 2025

Powered by FUDForum. Page generated in 1.14665 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top