Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » JDT content assist frustration
JDT content assist frustration [message #1827918] Tue, 26 May 2020 20:33 Go to next message
Eclipse UserFriend
I'm using Eclipse IDE 2020-03 for java development. I am running into a frustration with the content assist feature. The default suggestion that the editor is making is often annoyingly wrong and difficult to avoid.

As a simple example, in one of my methods, I type:

Arrays.sort

At this point, the content assist is offering parallelSort(byte[] a) as the top choice. If I hit '(', thinking my text will now say Arrays.sort(, it changes it to Arrays.parallelSort(a);

This sort of thing happens many times in many situations. It is especially frustrating when I am not looking at the code as I type it, but looking at a reference doc or code sample. The code I think I typed is very different from what is actually in the editor.

Are there some settings I can change to tell Eclipse to trust what I type by default?

Re: JDT content assist frustration [message #1827925 is a reply to message #1827918] Wed, 27 May 2020 01:53 Go to previous messageGo to next message
Eclipse UserFriend
In Eclipse Preference page Java > Editor > Content Assist , there is a preference
"Sort proposals" , the options are 1) alphabetically 2) by relevance.

The default value is "by relevance". The above behavior will be shown if the preference is set to "alphabetically". Please change this value to "by relevance" and save the preference changes. Then the expected right behavior will be seen.
Re: JDT content assist frustration [message #1827945 is a reply to message #1827925] Wed, 27 May 2020 07:17 Go to previous message
Eclipse UserFriend
The problem also occurs when "Java Proposals (Task-Focused)" is enabled instead of "Java Proposals".
Previous Topic:Eclipse m2e plugin issue for cyclic dependent projects
Next Topic:Eclipse Not visible to other users on Machine
Goto Forum:
  


Current Time: Mon Jul 14 02:21:52 EDT 2025

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

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

Back to the top