IntelliJ IDEA 2017.2 Help

Find Tool Window

View | Tool Windows | Find
Alt+3

On this page:

Basics

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.

Toolbar buttons

ItemTooltip and shortcutDescription
settings1 Options
Ctrl+Shift+Alt+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.
rerun Rerun
Ctrl+F5
Rerun the last search. This button is not available for viewing code coverage results.
close Close
Ctrl+Shift+F4
Close the current tab or the tool window. This button is not available in Replace in Path and Refactoring Preview dialogs.
pin Pin Use to pin or unpin the tab. If a tab is pinned, the results for the next command are shown on a new tab.
arrowBack Recent find usages
Ctrl+E
Show the list of recent searches. Select an item in the list to see the search results.
expandAll
collapseAll
Expand all
Ctrl+NumPad Plus
Collapse all
Ctrl+NumPad -
Use these buttons to have all nodes expanded or collapsed.
arrowUparrowDown Previous/next occurrence
Ctrl+Alt+Up
Ctrl+Alt+Down
Navigate to the previous/next element in the tab of results.
autoScrollToSource Autoscroll to sourceTurns the Autoscroll to source option on or off. When the option is on and you select the search result, the corresponding source file opens in the editor and the appropriate fragment is highlighted in the file.
icon star FavoritesClick this button to add found usages to favorites.
exportToTextFile Export to Text File
Alt+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 Help
F1
Use this icon or shortcut to open the corresponding help page.
commonfilter Group by usage type
Ctrl+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+D
If this button is pressed, the found usages show under the corresponding module or library node.

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

groupByPackageGroup by package
Ctrl+P
If this button is pressed, all the usages found are displayed under their respective packages.
groupByFileStructureGroup by file structure
Ctrl+M
If this toggle is on, the found usages are shown under the corresponding method nodes.
mergeUsagesMerge usages from the same line
Ctrl+F
If this toggle is on, the duplicate usages found on the same line are merged.
showReadAccessShow read access
Ctrl+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+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+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 usages Turns showing the Preview pane on or off.
sortAlphabetically Sort members alphabetically Click this button to have all members sorted alphabetically. Otherwise, members are sorted in the order they are declared.

The following buttons are available for Replace in Path only.

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

The following buttons are available for Refactoring Preview only.

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

The following buttons are available for Structural Replace only.

Replace AllClick this button to replace all found occurrences.
Replace SelectedClick this button to replace the highlighted occurrence.
Preview ReplacementClick this button to show how the changes will apply to the selected node in the Find tool window. In this case, the corresponding occurrence is highlighted in the source code.

Context menu commands

ItemShortcutDescription
Jump to Source F4 Navigate to the selected item in the source code.
Include Insert For an excluded item: include the item in the list of results.
ExcludeDeleteExclude the selected item from the list of results. (Excluded items are shown strikethrough.)

When you carry out the Replace All or the Do Refactor command, the excluded items are not affected.

RemoveAlt+Delete Remove the selected item from the list of results.
Recent Find Usages Ctrl+E Show the list of recent searches. Select an item in the list to see the search results.
Add to Favorites Add selected node to the Favorites list.
Last modified: 29 November 2017

See Also