RubyMine 7.0.0 Web Help

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:

Icon Shortcut Description
mergeUsages.png Ctrl+F or Alt+F3Ctrl+F or Shift+Alt+3Ctrl+F or Shift+Alt+3Ctrl+F or Alt+F3Ctrl+Alt+S, Alt+F3 or Ctrl+SCtrl+F or Alt+F3Ctrl+F or Alt+F3Ctrl+F or Alt+F3Meta+F or Alt+F3Command FCommand F or Alt F3Command FCommand F or Alt F3 Merge usages of the symbol from the same line.
showReadAccess.png Ctrl+RCtrl+RCtrl+RCtrl+RShift+Alt+5Ctrl+HCtrl+HCtrl+FAlt+Meta+FCommand RCommand RCommand RCommand R Show read access to the symbol.
showWriteAccess.png Ctrl+W Show write access to the symbol.
showImportStatements.png Ctrl+ICtrl+ICtrl+ICtrl+ICtrl+ICtrl+Shift+ICtrl+IShift+Alt+PCtrl+Alt+OControl ICommand IControl ICommand I Show usages in the import statements.
groupByFileStructure Ctrl+MCtrl+MCtrl+MCtrl+MCtrl+MCtrl+MCtrl+MCtrl+MCtrl+MEditorScrollToCenterEditorScrollToCenterEditorScrollToCenterShift Command M If this button is pressed, the found usages show under the corresponding method nodes.
find.gif Alt+F7Shift+Alt+7Shift+Alt+7Alt+F7Alt+F7 or Shift+Alt+SShift+Alt+F7Alt+F7Ctrl+GAlt+F7Alt F7Alt F7Shift Command GAlt F7 Show search results in the Find Usages tool window.
settings.png Ctrl+Shift+Alt+F7Ctrl+Shift+Alt+7Ctrl+Shift+Alt+7Ctrl+Shift+Alt+7Ctrl+Shift+Alt+F7Ctrl+Shift+Alt+F7Ctrl+Shift+Alt+F7Ctrl+Shift+Alt+F7Shift+Alt+Meta+F7Shift Alt Command F7Shift Alt Command F7Shift Alt Command F7Shift Alt Command F7 Open the Find Usages dialog box for the selected symbol where you can change the search options.

Tip

In addition to the ability of viewing usages, you can use this function as a quick means of navigation.

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+F7Ctrl+Alt+7Ctrl+Alt+7Ctrl+Alt+7Ctrl+Alt+F7Ctrl+Alt+F7Ctrl+Alt+F7Ctrl+Alt+F7Alt+Meta+F7Alt Command F7Alt Command F7Alt Command F7Alt Command F7.
  3. Examine and analyze the detected occurrences of the 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 EscapeEscapeEscapeEscapeEscape, Escape or Ctrl+GEscapeEscapeEscapeEscapeEscapeEscapeEscapeEscape.

    ruby_showUsages.png

  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 settings1.
    • Press Ctrl+Shift+Alt+F7Ctrl+Shift+Alt+7Ctrl+Shift+Alt+7Ctrl+Shift+Alt+7Ctrl+Shift+Alt+F7Ctrl+Shift+Alt+F7Ctrl+Shift+Alt+F7Ctrl+Shift+Alt+F7Shift+Alt+Meta+F7Shift Alt Command F7Shift Alt Command F7Shift Alt Command F7Shift Alt Command F7.

See Also

Procedures:

Reference:

Web Resources: