IntelliJ IDEA 12.1.0 Web Help

11.0+

View | Tool Windows | Find

View | Tool Windows | Find

Find tool window displays results of the following searches:

The results of each search are displayed in a separate tab, or replace the contents of the current tab, depending on the Open in new tab dialog setting. By default the window appears at the bottom of the screen. It has a toolbar with a set of buttons, a pane of results, and additional buttons for Replace in Path, Structural Replace, and Refactoring Preview operations.

In this section:

Toolbar buttons

ItemTooltip and shortcutDescription
settings1 Options
CtrlControlAlt+Shift+F7Alt Shift F7
Click this button to open one of the Find Usages dialogs, which corresponds to the symbol in question. You can edit the search settings and click Rerun button to execute the modified search query.
img Rerun
Ctrl+F5Control F5
Rerun the last search. This button is not available for viewing code coverage results.
img Close
Ctrl+Shift+F4Ctrl+Shift+F4
Close the current tab. This button is not available in Replace in Path and Refactoring Preview dialogs.
pin2.png PinWhen this button is pressed, the current tab will not be overwritten; instead, the results of the next command will be displayed in a new tab.
arrowBack Recent find usages
Ctrl+ECtrl+E
Show the list of recent find usages. Clicking the desired entry opens results of the selected search for usages.
img
img
Expand all
Ctrl+Add; Ctrl+EqualsCtrl+Add; Ctrl+Equals
Collapse all
Ctrl+Subtract; Ctrl+MinusCtrl+Subtract; Ctrl+Minus
Click this button to have all nodes expanded or collapsed.
arrowUparrowDown Previous/next occurrence
Ctrl+Alt+UpCtrl+Alt+Up
Ctrl+Alt+DownCtrl+Alt+Down
Navigate to the previous/next element in the tab of results.
img Autoscroll to sourceToggle the Autoscroll to source mode. When the button is pressed, every time the node is focused, the corresponding line of source code is highlighted in the editor.
icon_star FavoritesClick this button to add found usages to favorites.
exportToTextFile Export to Text File
Alt+OControl O
Save the contents of the current result tab. In the Export preview dialog, specify the target file or copy information to the Clipboard. Before saving, you can also modify the information to be saved.
help.gifHelp
F1F1
Click this button to show reference.
8.0+ commonfilter Group by usage type
Ctrl+TControl T
This button is available for Find Usages only.
If this button is pressed, the search results are grouped by the following categories:
  • instanceof
  • import
  • cast target type
  • extends/implements clause
  • class static member access
  • method throws list
  • .class
  • field declaration
  • local variable declaration
  • method parameter declaration
  • catch clause parameter declaration
  • method return type
  • delegates to another object instance
  • delegates to another object instance with different parameters
  • delegates to super
  • delegates to super with different parameters
  • recursive method calls
  • string constants
  • comments
  • unclassified usage not related to any of the categories
groupByTestProductionGroup by test/productionIf this button is pressed, the usages are grouped according to the Production and Test scopes.
groupByModule Group by module
Ctrl+DCtrl+D
If this button is pressed, the found usages show under the corresponding module or library node.

Tip

This type of grouping is helpful, when a package is split between several modules.

groupByPackageGroup by package
Ctrl+PCommand P
If this button is pressed, all the usages found are displayed under their respective packages.
groupByFileStructureGroup by file structure
Ctrl+M
If this button is pressed, the found usages show under the corresponding method nodes.
imgMerge usages from the same line
Ctrl+F; Alt+F3Ctrl+F; Alt+F3
If this button is pressed, the duplicate lines are merged.
showReadAccessShow read access
Ctrl+RCtrl+R
This button is available for Find Usages only.
If this button is pressed, the search results include references to the read access methods.
showWriteAccess Show write access
Ctrl+WCtrl+W
This button is available for Find Usages only.
If this button is pressed, the search results include references to the write access methods.
showImportStatements Show import statements
Ctrl+ICtrl+I
This button is available for Find Usages only.
If this button is pressed, the search results include the usages in the import statements.
previewUsages Preview usagesIf this button is pressed, the preview of the selected usage appears in the Preview pane of the tool window. If the button is not pressed, the Preview pane is hidden.
sortAlphabetically Sort members alphabeticallyClick this button to have all members sorted alphabetically. Otherwise, members are sorted in the order they are declared.

Tip

The following buttons are available for Replace in Path only.

Do Replace All Alt+DAlt D Click this button to replace all occurrences in the current tab of results.
Replace Selected Alt+LAlt L Click this button to replace the selected occurrence in the current tab of results.

Tip

The following buttons are available for Refactoring Preview only.

Do Refactor Alt+DAlt D Click this button to perform refactoring on all occurrences in the current search results.
Cancel Alt+CAlt C Click this button to discard search results and close the results tab.

Tip

The following buttons are available for Structural Search and Replace only.

Edit QueryClick this button to change the structural search query in the Structural Search and Replace dialog box.
Preview ReplacementClick this button to show how the changes will apply to the selected node in the Find tool window.So doing, the corresponding occurrence is highlighted in the source code.

Context menu commands

ItemShortcutDescription
Jump to Source F4F4 Navigate to the selected usage in the source code.
Exclude DeleteDelete Exclude the selected item from the list of results, with all nested subelements. The excluded nodes are marked with the strikethrough. If you perform Do Replace All or Do Refactor All actions, the excluded elements are skipped.
Include InsertInsert Include previously excluded items to the list of results. All nested subelements are included too.
Add to Favorites Add selected node to the Favorites list.
Recent Find Usages Ctrl+ECtrl+E Show the list of recent find usages. Clicking the desired entry opens results of the selected search for usages.

See Also

Procedures:

Getting Started:

Web Resources: