Content/Code Assist

You can use content (i.e., code) assist when writing Java code or Javadoc comments.

1.

Place your cursor in a valid position on a line of code in an editor and either:

  • Press Ctrl+Space,
  • Select Content Assist from the context menu, or
  • Select Edit > Content Assist from the menu bar.

2.

If the Java Editor finds valid candidates for this position, a list of possible completions is shown in a floating window.

3.

Use the arrow keys or the mouse pointer to navigate through the possible completions.

4.

Select an item in the list to complete the fragment by either

  • Selecting it and pressing Enter or
  • 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.