Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Navigating the Content Assist List in Eclipse

Here are the ways the Eclipse documentation states you can navigate the Content Assist list:

You can use the mouse or the keyboard (Up Arrow, Down Arrow, Page Up, Page Down, Home, End, Enter) to navigate and select lines in the list.

But all of the options require you to move your hands significantly away from their natural place on the keyboard!

Are there any other, quicker ways I can navigate this list? Something like tab, or the j/k from vi?

like image 914
volni Avatar asked Apr 10 '10 22:04

volni


2 Answers

This is a great feature, and you can implement it like so: bind movement keys in Eclipse's key binder and then use them in the content assist menu!

Preferences/General/Keys

Line Down: Bind to Ctrl+K Line up: Bind to Ctrl+I

(both when 'Editing Java Source')

and then try moving with Ctrl-K/I when the content assist pops up!

In Kepler, as jed mentions in the comments, select "when editing text" instead and it should work.

like image 112
Mark Waschkowski Avatar answered Oct 06 '22 05:10

Mark Waschkowski


If you try to fill in the content manually, Eclipse will move.

The search is quite advanced, e.g. "ArL" can match ArrayList, etc., so if you know what you are looking for, instead of navigation you could use search.

like image 33
Zoltán Ujhelyi Avatar answered Oct 06 '22 05:10

Zoltán Ujhelyi