Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any way to get IntelliJ-like autocompletion in Eclipse?

I'm stuck with Eclipse in one project and I would like to have autocompletion similar to that of IntelliJ - two major problems are:

  • Start typing and Eclipse would automatically suggest all possibilities
  • When there is item selected in dropdown list you can accept it not only with enter key but with dots, spacebars...
like image 876
Jarek Avatar asked Apr 16 '11 08:04

Jarek


4 Answers

Go to Window → Preferences → Java → Editor → Content Assist. In the column "Auto activation triggers for Java", enter this:

.qwertyuioplkjhgfdsazxcvbnm_QWERTYUIOPLKJHGFDSAZXCVBNM 

Add any other keys you want. You're done. That answers your first query. As far as second one goes, I think it already exists.

like image 74
rottweiler Avatar answered Oct 13 '22 13:10

rottweiler


Take a look at Eclipse Code Recommenders [1] or Codetrails Connect [2]. They make Eclipse' code completion intelligent.

[1] http://eclipse.org/recommenders/

[2] http://marketplace.eclipse.org/content/codetrails-connect-community-edition/

like image 26
Marcel Avatar answered Oct 13 '22 14:10

Marcel


I have to say NO. I moved from Eclipse to IntelliJ because of the intellisense and inability to make Eclipse behave like IntelliJ (or if you come from the .NET environment: inability to make Eclipse intellisense behave like ReSharper in .NET).

Do you HAVE TO work in Eclipse? I do 98% of work in IntelliJ, then convert the project into Eclipse project (IntelliJ can still access it) and finish it in Eclipse. Maybe you could try this solution.

like image 21
sandalone Avatar answered Oct 13 '22 14:10

sandalone


Since Eclipse Juno, Code Recommenders Intelligent Java Proposals replaced the old JDT's Java Proposals.

It afford "Intelligent Code Completion" function, like IntelliJ did in a way.

You can get something useful through the link below:

http://code-recommenders.blogspot.jp/2012/07/code-recommenders-10-code-completion-on.html

like image 25
zhijuexu Avatar answered Oct 13 '22 12:10

zhijuexu