Java Content Assist automatically inserts nonsens [message #1748468] |
Wed, 23 November 2016 12:08 |
Rene Dekker Messages: 9 Registered: July 2009 |
Junior Member |
|
|
I like content assist, as a quick way to help me remember method/variable names, etc. But when using the content assist of Eclipse, it frequently inserts garbage when pressing space or '.'. For example, when typing 'i' followed by space, it automatically inserts 'isCorridor' (a method of my class), even though a local variable 'i' is also defined. I have tried different settings for Content Assist, but they do not seem to do anything, or switch off content assist altogether.
How do I prevent this behaviour?
I would like the content assist popup to come up, but it only to insert anything when I press TAB (or RETURN), and then only the common prefix of all suggestions. That, together with the option to select a specific suggestion from the list would work satisfactory.
Ideally, the common prefix of all the suggestions would be inserted already (in a different color) in the text, such that you type over it, and it would be accepted when pressing TAB.
If it makes a difference, I am using Eclipse 2.0.1 for Java on MacOS.
|
|
|
Re: Java Content Assist automatically inserts nonsens [message #1748503 is a reply to message #1748468] |
Wed, 23 November 2016 16:48 |
|
Hello Rene,
Eclipse 2.0.1? really?
The latest version is 4.6.1, so if it is really the correct version a lot of things might have changed since that time (several years ago)
Another possible cause is simply that the variable is not visible in the scope you are trying to use it. Can you double-check that the variable you are trying to use is in the correct scope?
Regards,
Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
|
|
|
|
|
|
Re: Java Content Assist automatically inserts nonsens [message #1748749 is a reply to message #1748658] |
Mon, 28 November 2016 10:21 |
|
Hello René,
Do you have a single proposal in your case?
If yes, there is an option "Insert single proposals automatically" that you can deactivate in Windows->Preferences then Java -> Editor ->Content Assist
You can also choose to enable/disable or change time before auto-activation of the completion on the same page.
I hope that you will be able to configure as you wish from these preferences.
regards,
Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
|
|
|
|
Powered by
FUDForum. Page generated in 0.03472 seconds