Java Content Assist automatically inserts nonsens [message #1748468] |
Wed, 23 November 2016 07:08  |
Eclipse User |
|
|
|
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 #1748976 is a reply to message #1748749] |
Wed, 30 November 2016 11:22  |
Eclipse User |
|
|
|
It's not a single proposal in most cases, and the option you mention was already switched off.
And if I switch off auto-activation, then the proposals don't come up at all. I would like to still see the proposals automatically, and be able to choose one with arrow keys and RETURN / TAB. I would just like to get rid of the auto-insertion when I press SPACE or '.'.
But I guess I will have to live with that?
|
|
|
Powered by
FUDForum. Page generated in 0.04734 seconds