Mark Occurrences

You can use this feature to mark occurrences of the selected element in the current source code.

If Mark Occurrences is enabled, the script editor can display markers to indicate where a variable, method, type, or other element is referenced.

Enabling Mark Occurrences

To enable Mark Occurrences, complete one of these steps:

  • Right-click the script editor's marker bar and select Show Mark Occurrences.
  • Select the Show Mark Occurrences check box in the Preferences - Editor dialog box. You can access this preference page via the Preferences dialog box.

    See Script Editor Preferences.

Marking occurrences

To mark occurrences of an element, double-click the element. The script editor shows markers in the marker bar and overview ruler, to indicate references of the selected element.

This figure shows an example:

Note: The appearance of the markers depends on the settings in the Annotations preferences page. You can access this preference page through the Preferences dialog box.

See Script Editor Preferences.