Content/code assist
If activated from a valid line of code in an editor, this command opens a scrollable list of available code completions. Some tips for using code assist:
If you select and then hover over a selected line in the content assist list, you can view Javadoc information for that line.
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.
Clicking or pressing "Enter" on a selected line in the list inserts the selection into the editor.
You can access specialized content assist features inside Javadoc comments.
Configure the behaviour of the content assist in the Editor preference page (Code Assist tab).
Using content/code assist
Place your cursor in a valid position on a line of code in an editor and either
Press Ctrl+Space
Select Edit > Content Assist from the menu bar
If the Java editor finds valid candidates for this position, a list of possible completions is shown in a floating window. You can type further to narrow the list. You can also hover over the selected list items to view its Javadoc information, if it is available.
Use the arrow keys or the mouse pointer to navigate through the possible completions.
Select an item in the list to complete the fragment by doing one of the following:
Selecting it and pressing Enter
Double-clicking it
Note: When a list item is selected, you can view any available Javadoc information for this item in hover help. Note that you must click an item to select it in the list before you can view Javadoc hover help for it.
![]() ![]() ![]() ![]() ![]() ![]() |
![]() |
![]() |