Highlight multiple occurrences of variables

Use the highlighter to mark multiple occurrences of variables in your ILE RPG code to easily see where they are used.

Procedure

  1. Open an ILE RPG source member. Right-click the member and select Open With > Remote Systems LPEX Editor.
  2. Click a variable in your code and then select the highlighter in the toolbar.
    highlighter toggle

    The occurrences of the selected variable are highlighted. Marker symbols are also displayed in the left and right margins of the editor so that the locations of the variable in your code can be easily identified. This image shows the variable num3 highlighted.

    highlighted variable

  3. Optional: Change how occurrences are displayed. For example, you can change the highlighter color. Click Window > Preferences > General > Editors > Text Editors > Annotations. Select Occurrences (org.eclipse.imp.runtime.occurrenceAnnotation) to work with the highlighter preferences.

Feedback