IntelliJ IDEA 2018.3 Help

Find Tool Window

View | Tool Windows | Find
Alt+3


Basics

The Find tool window displays the 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

Item

Tooltip and Shortcut

Description

icons general gearPlain svg

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.

icons actions rerun svg

Rerun
Ctrl+F5

Repeat the last search. This button is not available for viewing code coverage results .

icons actions 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.

icons general pin tab svg

Pin Tab

Click this button to pin or unpin the current tab. You may need to pin a tab to prevent it from closing automatically when the maximum number of tabs is reached in this window.

icons actions back

Recent find usages
Ctrl+E

Show the list of recent searches. Select an item in the list to see the search results.

icons actions expandall svg
icons actions collapseall svg

Expand all
Ctrl+NumPad Plus
Collapse all
Ctrl+NumPad -

Use these buttons to have all nodes expanded or collapsed.

icons actions previousOccurence svg/icons actions nextOccurence svg

Previous/next occurrence
Ctrl+Alt+Up
Ctrl+Alt+Down

Navigate to the previous/next element in the tab of results.

icons general autoscrollToSource svg

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.

icons toolbarDecorator export svg

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.

icons general filter

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

icons actions groupByTestProduction svg

Group by test/production

If this button is pressed, the usages are grouped according to the Production and Test scopes.

icons actions GroupByModule svg

Group by module
Ctrl+D

If this button is pressed, the found usages show under the corresponding module or library node.
icons objectBrowser flattenModules svg

Flatten modules

If this icon is selected, all the modules are displayed as a single-level tree view.

icons actions GroupByPackage svg

Group by package
Ctrl+P

If this button is pressed, all the usages found are displayed under their respective packages.

Group by file structure

Group by file structure
Ctrl+M

If this toggle is on, the found usages are shown under the corresponding method nodes.

Merge usages from the same line

Merge usages from the same line
Ctrl+F

If this toggle is on, the duplicate usages found on the same line are merged.

Show read access

Show 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.

Show write access

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.

Show import statements

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.

icons actions previewDetails svg

Preview usages

Turns showing the Preview pane on or off.

Sort Alphabetically

Sort members alphabetically

Click this button to have all members sorted alphabetically. Otherwise, members are sorted in the order they are declared.

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.

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.

Replace All

Click this button to replace all found occurrences.

Replace Selected

Click this button to replace the highlighted occurrence.

Preview Replacement

Click 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

Item

Shortcut

Description

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.

Exclude

DeleteExclude 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.

Remove

Ctrl+X

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: 1 February 2019

See Also