CLion 2017.3 Help

Viewing Usages of a Symbol

Using the Show Usages function, you can bring up a list of the usages of a symbol across the whole project. So doing, the pop-up window with the list of usages of a symbol features a toolbar with the following buttons:

/help/img/idea/2017.3/mergeUsages.pngMerge usages from the same lineMerge usages of the symbol from the same line.
/help/img/idea/2017.3/showReadAccess.pngShow read accessShow read access to the symbol.
/help/img/idea/2017.3/showWriteAccess.pngShow write accessShow write access to the symbol.
/help/img/idea/2017.3/showImportStatements.pngShow import statementsShow usages in the import statements.
/help/img/idea/2017.3/groupByFileStructure.pngGroup by file structureIf this button is pressed, the found usages show under the corresponding method nodes.
/help/img/idea/2017.3/settings.pngSettings.../Ctrl+Alt+SOpen the Find Usages dialog box for the selected symbol where you can change the search options.
/help/img/idea/2017.3/pin_grey.pngOpen Find Usages tool window/Alt+F7Click this button to pin the Show Usages pop-up window and show usages in the Find Usages tool window.

To view the usages of a symbol across the project

  1. Place the caret at the desired symbol in the editor.
  2. On the main menu, choose Edit | Find | Show Usages, or press Ctrl+Alt+F7.
  3. Examine and analyze the detected occurrences of a symbol:
    • Use the toolbar buttons to present search results in the desired way.
    • To jump from search results to a line of source code, click the desired entry.
    • To close the list, press Escape.
  4. If necessary, customize the search options in the search options dialog box. To invoke the dialog box, do one of the following:
    • In the Show Usages pop-up window, click /help/img/idea/2017.3/settings1.png.
    • Press Ctrl+Shift+Alt+F7.
Last modified: 24 October 2017

See Also