AppCode 2018.1 Help

Highlighting Usages

The search command Highlight Usages in File (N/A) makes it possible to visualize usages of a symbol in the current file.

All found usages of a symbol in the current file are highlighted and color-coded, as defined in the Color Scheme settings page, to represent read or write access to the symbol. In addition to the highlights of occurrences in text, the stripes of the same colors appear in the marker bar, accompanied with tooltips.

The behavior of usage highlighting is configurable: you can make AppCode show usages of a symbol at caret automatically, or invoke it with a command.

By default, AppCode highlights the usages of a symbol at the caret within the opened file in the editor.

Activating automatic highlighting of usages

  1. Open the Preferences dialog box (AppCode | Preferences), and click General under the Editor node.

  2. On the General page that opens, select the Highlight usages of element at caret checkbox in the Highlight on Caret Movement area.

Highlighting usages of a symbol in the current file

  1. Place the caret at the selected symbol in the editor. If automatic usages highlighting is enabled, see all its occurrences in the current file highlighted. Otherwise, proceed to the next step.

  2. On the main menu, choose Edit | Find | Highlight Usages in File, or press N/A.

To navigate among usages, do one of the following:

  • Click on a stripe in the marker bar to navigate to the respective usage location.

  • Use the N/A and N/A keyboard shortcuts to navigate to the next and previous usages respectively.

Removing highlighting

To remove highlighting of usages, press N/A.

Last modified: 19 September 2019