(^2) Examine the message indicator at the top of the message bar to see the Code
Analyzer messages reported for the file:
- Red indicates that syntax errors or other significant issues were detected.
- Orange indicates warnings or opportunities for improvement, but no errors, were
detected. - Green indicates no errors, warnings, or opportunities for improvement were
detected.
In this example, the indicator is red, meaning that there is at least one error in the
file.
3 Click the message indicator to go to the next code fragment containing a message.
The next code fragment is relative to the current cursor position, viewable in the
status bar.
In the lengthofline example, the first message is at line 21. The cursor moves to
the beginning of line 21.
The code fragment for which there is a message is underlined in either red for errors
or orange for warnings and improvement opportunities.
4 View the message by moving the mouse pointer within the underlined code fragment.
Check Code for Errors and Warnings