Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find a package by name in Intellij IDEA

I know the name of java package and I want to find it in project. How to do it fast in Intellij IDEA? Is there any keyboard shortcut?

like image 388
Pavel Avatar asked Apr 19 '13 05:04

Pavel


People also ask

How do I search for a specific name in IntelliJ?

From the main menu, select Edit | Find | Find in Files Ctrl+Shift+F . In the search field, type your search string. Alternatively, in the editor, highlight the string you want to find and press Ctrl+Shift+F . IntelliJ IDEA places the highlighted string into the search field.

How do I search dependencies in IntelliJ?

In the POM, right-click anywhere in the editor to open the context menu and select Maven | Show Dependencies. Alternatively, press Ctrl+Alt+Shift+U or Ctrl+Alt+U . In the diagram window, IntelliJ IDEA displays the sub project and all its dependencies including the transitive ones.

How do I search anywhere in IntelliJ?

Use ⇧⇧ (macOS), or Shift+Shift (Windows/Linux), to bring up the Search Everywhere dialog. You can search across Classes, Files, Symbols and Actions. You can also use forward slash to filter the results to a specific area, such as /editor.

How do I use search methods in IntelliJ?

Select a symbol for which you want to find usages, right-click the symbol, and select Find Usages from its context menu or press Alt+F7 . Check the results in the Find tool window. ) the results by files, packages, directories, and so on. on the toolbar in the Find tool window or press Ctrl+Alt+Shift+F7 .


1 Answers

Open Project View tool window, switch to the Packages view mode, click on the gear icon, enable Flattern Packages option, disable Show Modules option.

Start typing the package name to activate the speed search.


Another option is to use Navigate | Class, type your.package.*, select some class, press Alt+Home for the navigation bar popup, use arrows to select the package, press F4 (may not work if navigation bar is not floating, but enabled in the View menu instead).

like image 84
CrazyCoder Avatar answered Sep 19 '22 14:09

CrazyCoder