Reputation: 5247
I like the time-saving convenience of using code completion with Ctrl-Space in Eclipse. (I'm currently using Eclipse Oxygen.) However, sometimes I wish I could change the order of suggestions within the drop-down menu. In particular, I get frustrated with the suggestions when I use completions with Apache's Logger
class:
The suggestion at the top of the list is a debug
variant with nine arguments. Because Eclipse usually provides me the best choice first, I often accidentally choose the nine-argument variant, instead of the single-argument variant that is almost always what I want. Then I have to undo the selection I made, and do it over. This may waste several seconds of my life.
Is there any way to get Eclipse to put the one-argument variant at the top of the list? I can't imagine that too many people prefer calling debug
with nine arguments.
Upvotes: 4
Views: 71
Reputation: 374
As far as I know, it's not possible. But there are few option you could try.
Go to Window -> Preferences -> Java -> Editor -> Content Assist
.
There you'll find 2 sorting and filtering options - 'by relevance' and 'alphabetically'.
Upvotes: 1