Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse content assist with middle letters match

Eclipse gives suggestions that starts with what I type: enter image description here

But IntelliJ IDEA gives suggestions that has (in the middle or at the beginning) what I type: enter image description here

I guess Eclipse Luna has the same feature (based on this presentation), but I cannot make it work. Any help?

like image 288
siva636 Avatar asked Apr 15 '15 17:04

siva636


2 Answers

This functionality is provided by the Code Recommenders plugin. It comes with the Eclipse Luna for Java SE, but for some reason it is not bundled in the EE version. Of course you can install it manually from the eclipse marketplace.

To activate it go to Window -> Preferences -> Code Recommenders -> Completions -> Check enable intelligent code completion. You can also select in which type of completions you are interested in. The exact feature you are looking for is called "Subwords completion processor" (and I cannot live without it :D)

enter image description here

like image 67
Svetlin Zarev Avatar answered Sep 21 '22 22:09

Svetlin Zarev


I think the closest is the 'Show camel case matches' option (configured in the Preferences in Java > Editor > Content Assist).

With that enabled you have to type the first letter of each part of the name, so for 'createNamedQuery' you can type 'cNQ'

like image 28
greg-449 Avatar answered Sep 21 '22 22:09

greg-449