IntelliJ IDEA 13.1.0 Web Help

11.0+

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.

On this page:

Toolbar buttons

Item Tooltip and shortcut Description
settings1 Options
CtrlShift+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.
img Rerun
Ctrl+F5Ctrl+F5Ctrl+5Ctrl+F5Ctrl+F5Ctrl+F5Ctrl+Alt+RCtrl+F5Ctrl+F5Command RControl F5Command R
Rerun the last search. This button is not available for viewing code coverage results.
img Close
Ctrl+Shift+F4Ctrl+Shift+F4Ctrl+Shift+4Ctrl+Shift+F4Ctrl+Shift+F4Ctrl+Shift+F4Ctrl+Shift+F4Ctrl+Shift+F4Ctrl+WControl Shift F4Shift Command F4Command W
Close the current tab or the tool window. This button is not available in Replace in Path and Refactoring Preview dialogs.
pin2.png 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+ECtrl+ECtrl+ECtrl+ECtrl+ECtrl+ECtrl+EShift+F4Ctrl+ECommand ECommand ECommand E
Show the list of recent searches. Select an item in the list to see the search results.
img
img
Expand all
Ctrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCommand NumPad or Command EqualsCommand NumPad or Command EqualsCommand NumPad or Command Equals
Collapse all
Ctrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad -Ctrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCommand NumPad - or Command MinusCommand NumPad - or Command MinusCommand NumPad - or Command Minus
Click this button to have all nodes expanded or collapsed.
arrowUparrowDown Previous/next occurrence
Ctrl+Alt+UpShift+Alt+UpCtrl+Alt+UpCtrl+Alt+UpCtrl+Alt+UpCtrl+Alt+UpCtrl+Alt+UpAlt+UpCtrl+Alt+UpAlt Command UpAlt Command UpAlt Command Up
Ctrl+Alt+DownShift+Alt+DownCtrl+Alt+DownCtrl+Alt+DownCtrl+Alt+DownCtrl+Alt+DownCtrl+Alt+DownAlt+DownCtrl+Alt+DownAlt Command DownAlt Command DownAlt Command Down
Navigate to the previous/next element in the tab of results.
img Autoscroll to source Turns 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 Favorites Click this button to add found usages to favorites.
exportToTextFile Export to Text File
Alt+OAlt+OAlt+OAlt+OAlt+OAlt+OAlt+OAlt+OAlt+OControl OControl 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.gif Help
F1F1F1F1F1F1F1F1F1ContextHelpF1ContextHelp
Use this icon or shortcut to open the corresponding help page.
8.0+ 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
groupByTestProduction Group by test/production If this button is pressed, the usages are grouped according to the Production and Test scopes.
groupByModule Group by module
Ctrl+DCtrl+DCtrl+DCtrl+DMeta+DCtrl+DCtrl+DCtrl+D, Ctrl+Shift+Down or Ctrl+Shift+UpCtrl+DCommand DCommand DCommand 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.

groupByPackage Group by package
Ctrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCommand PCommand PCommand P
If this button is pressed, all the usages found are displayed under their respective packages.
groupByFileStructure Group by file structure
Ctrl+MCtrl+MCtrl+MCtrl+MCtrl+MCtrl+MCtrl+MCtrl+MCtrl+MEditorScrollToCenterEditorScrollToCenterEditorScrollToCenter
If this toggle is on, the found usages are shown under the corresponding method nodes.
img Merge usages from the same line
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+F3Ctrl+F or Alt+F3Command FCommand F or Alt F3Command F
If this toggle is on, the duplicate usages found on the same line are merged.
showReadAccess Show read access
Ctrl+RCtrl+RCtrl+RCtrl+RShift+Alt+5Ctrl+RCtrl+HCtrl+HCtrl+FCommand RCommand RCommand 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+WCtrl+WCtrl+WCtrl+Alt+WCtrl+WCtrl+WShift+Alt+PeriodShift+Alt+UpAlt UpCommand WControl Shift Up
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+ICtrl+ICtrl+ICtrl+ICtrl+ICtrl+Shift+ICtrl+IShift+Alt+PControl ICommand IControl 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.

Tip

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.

Tip

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.

Tip

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

Edit Query Click this button to change the structural search query in the Structural Search and Replace dialog box.
Preview Replacement Click 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

Item Shortcut Description
Jump to Source F4F4F4F4F4F4F4F4F12 or Ctrl+Shift+ECommand Down or F4F4F3 Navigate to the selected usage in the source code.
Exclude DeleteDeleteDeleteDeleteDelete or Ctrl+DDeleteDeleteDeleteDeleteDelete, Backspace or Command BackspaceDelete, Backspace or Command BackspaceDelete, Backspace or Command Backspace Exclude the selected item from the list of results, with all nested subelements. The excluded nodes are shown strikethrough. If you perform the Replace All or Refactor All actions, the excluded elements won't be affected.
Include InsertInsertInsertInsertInsertInsertInsertInsertInsertShift BackspaceInsertShift Backspace Include previously excluded items in 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+ECtrl+ECtrl+ECtrl+ECtrl+ECtrl+EShift+F4Ctrl+ECommand ECommand ECommand E Show the list of recent searches. Select an item in the list to see the search results.

See Also

Procedures:

Getting Started:

Web Resources: