Using Editor Hints to Fix Code

See Also

As you are typing in the Source Editor, the IDE detects and marks errors with the error glyph (error glyph) and other markers. For some errors, the IDE can suggest can suggest a solution and generate the necessary code. When the IDE can provide such a hint to correct the error, the lightbulb icon (lightbulb icon) appears in the left margin.

To display hints and generate a correction for your code:

  1. When the lightbulb icon (lightbulb icon) appears, press Alt-Enter to display the hint.
  2. Select a suggestion from the drop-down list and press Enter.

Editor hints are available to do the following things:

See Also
Identifying Errors in Source Code
Completing a Java Expression
Inserting Code From a Template
Using the Word Match Feature

Legal Notices