user4013770
user4013770

Reputation:

Eclipse disable only auto angle brackets

Every time I go to put an angle bracket (<>) in for a less than sign in Eclipse Java, Eclipse auto-closes it. I'm fine with this feature for parentheses and square brackets, but it gets in the way with angle brackets and doesn't even really make sense. I've tried to disable it, but the only option disables square brackets and parentheses as well. Is there a setting or other method to disable only angle brackets?

Upvotes: 2

Views: 454

Answers (1)

greg-449
greg-449

Reputation: 111142

It looks like Eclipse auto-closes '<' when it follows text that looks like a class name so it might be generic.

So if I type:

List<

I get auto-close because 'List' looks like a class name (starts with an upper case letter and follows the rules for a class name), but if I type:

list<

I don't get auto-close (does not start with upper case).

There does not appear to be a separate setting to stop this.

Upvotes: 1

Related Questions