To specify the EGL editor preferences, follow these steps:
- From the main menu, click .
- From the navigation tree, expand EGL and
click Editor.
- In the Preferences window, you can set or
clear the following EGL editor settings:
- Show line numbers
- Displays the line numbers in the EGL file.
- Annotate errors in text
- Underlines errors in the source code, with a red line, and provides
an error indicator in the vertical ruler (the left margin). The underlines
and indicators are displayed when you save the file. You can hover
over the underline or error indicator to see an error message.
- Annotate errors in overview ruler
- Shows a red error indicator in the overview ruler (that is, in
the right margin of the editor) whenever an error is found in the
source code. The indicators are displayed when you save the file.
You can click the error indicator to go to the line that has the error,
and you can hover over the error indicator to see the error message.
- Annotate errors as you type
- Causes the display of error indicators as you type, not only after
you save the file. The specific indicators affected by this setting
depend on two other settings:
- If Annotate errors in text is set, the
editor responds to a source-code error by underlining the error with
a red line and by providing an error indicator in the vertical ruler
(the left margin). You can hover over the underline or error indicator
to see an error message.
- If Annotate errors in overview ruler is
set, the editor responds to a source-code error by showing a red error
indicator in the overview ruler (that is, in the right margin). You
can click the error indicator to go to the line that has the error,
and you can hover over the error indicator to see the error message.
- Enable auto activation
- Clear this check box to keep the content-assist popup from showing
each time you type a period after a variable name or other symbol.
Regardless
of this setting, content assist is available to you when you press
Ctrl-Shift in the EGL editor.
- Click Apply to save the changes and remain
in the Preferences window. Click OK to save
the changes and exit the window.
There are other pages with additional options for the EGL editor
under the
EGL page in the navigation tree.
To set these options, see the following topics: