Eclipse and Code Completion, a gentle showcase

Julien Ponge
2 min readAug 13, 2015

--

The Eclipse IDE has made lots of progress recently, and the Eclipse Mars release is a clear improvement compared to the earlier releases.

Still, the Java code completion experience is far from perfect when compared to IntelliJ IDEA and Netbeans.

Let’s take a dummy sample:

Eclipse wants me to do AWT development!

Type List then Ctrl+Space and the first completion is java.awt.List. I can understand that alphabetical sort yields this result, but other IDEs pounder orders in a more sensible way.

Nevermind, I keep going on and try to complete once more:

Oh, won’t you complete?

Here IntelliJ would have offered me a completion for possible matches. I would have chosen ArrayList by typing, and the imports would have been fixed for me. It’s not the case with Eclipse, so let’s go ahead and try using the quick fix:

Still no luck…

No luck, Eclipse still wants me in AWT. I went into the obvious fix: I told Eclipse I wanted a java.util.List.

Cool, so perhaps I can now have a proper right hand side completion?

Perhaps I should write my own list implementation…

Oh no, Eclipse wants me to type more, or roll on and write my own list implementation :-)

--

--