Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse content assist auto appends type for variable

I just started to use Juno for a couple of days, the content assist mechanism seems different from what it behaves before.

For example, if I try to declare a variable

Boolean isVisible

The content assist of Juno will give you a drop-down list with the variable name

isVisibleBoolean

as hint.

And the very annoying thing is that no matter what I typed in(; or SPACE), the "isVisibleBoolean" will be selected.

Does anybody know how can I disable the auto-variable-type-appending thing?

Much appreciated.

I'm using Mac OS X 10.8.1 currently, haven't tested it yet in windows.

like image 266
hjbolide Avatar asked Sep 15 '12 01:09

hjbolide


People also ask

How do I fix Content Assist in Eclipse?

Solution. Go to Window -> Preferences -> Editor -> Content Assist -> Advanced and enable Parsing-based Proposals. Click Apply. Content assist should start working immediately.

How do I enable Content Assist in Eclipse?

To enable the Content Assist window to open automatically, go to the Content Assist Preferences page, accessed from Window | Preferences | PHP | Editor | Content Assist and mark the 'Enable auto-activation' checkbox.


2 Answers

Based on the discussion for Eclipse Bug 412992, check your Content Assist Auto Activation settings: Window->Preferences->Java->Editor->Content Assist

If, for example, characters a-z are listed as "Auto activation triggers for Java", you can remove them and the type name will not be auto-appended to a new variable name when you hit ' ' or ';'. It's up to you to determine the best configuration/tradeoffs for your style based on the available options.

like image 174
Buzz Killington Avatar answered Oct 21 '22 03:10

Buzz Killington


It seems that it is not possible. See answers to Eclipse Bug 378588: https://bugs.eclipse.org/bugs/show_bug.cgi?id=378588

like image 32
Noki Avatar answered Oct 21 '22 04:10

Noki