Whenever you edit files in the Source Editor, the
IDE notifies you of a source code error by providing the following indicators:
A red marker shaped like a rectangle () in the right
margin. The marker's vertical position in window is in proportion to the error's
position in the file.
A waved line underneath the line with an error.
An error glyph () in
the left margin next to the line with the error.
Where there is missing code for which the IDE can suggest a fix,
a lightbulb icon ()
in the left margin.
You can click the lightbulb icon or press Alt-Enter
to open a list of possible solutions. Select a solution and then press Enter to
have the IDE generate the missing code.
To jump to an error marked in the right margin:
Double-click the red error marker.
To display a tool tip with information about an error:
Hold the cursor over the
error glyph (), waved line, or
error marker ().
To have a correction generated according to the IDE's suggestion:
When the lightbulb icon
() appears,
press Alt-Enter to display the hint.
Select a suggestion from the drop-down list and press Enter.
Notes:
Code lines can be annotated with several different types of glyphs.
If there are multiple annotations on one line, only one glyph is displayed at a
time and the multiple annotations image
() appears.
You can cycle through multiple annotations by clicking the multiple annotations image
().
You can customize the way the various annotations are indicated.
To access the Annotation properties, choose
Tools > Options. Then click Fonts and Colors and select the Annotations tab.
A list of annotations appears. You can select an annotation and then use the Foreground,
Background, and Wave Underlined drop-down lists to customize the annotation.