Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to search for or navigate to a Java file type in IntelliJ IDEA 13?

How do I navigate to or search for a particular file type in IntelliJ IDEA?

For example, I need to search for all abstract classes in my project, or all the interfaces in my project, or all the enum files in my project.

Is there a shortcut such as Ctrl+N?

Thank you for the help.

like image 303
Panshul Avatar asked Dec 20 '22 10:12

Panshul


2 Answers

You didn't mention whether you have the ultimate edition or not. If so, you can use Intellij's structural search feature. You can invoke it with <CTRL>-<Shift>-S or by navigating to Edit->Find->Search Structurally.

To find all interfaces, use this template: interface $Interface$ {}. The $Interface$ part is a variable and can be parameterized with a regular expression so you can narrow down your search. The same principle applies for abstract classes and enums.

Structural search is a powerful feature, make sure to take a look at the existing predefined templates.

like image 93
Kai Sternad Avatar answered May 11 '23 01:05

Kai Sternad


Press 2 x Shift and type what you searching for

like image 23
SleepyX667 Avatar answered May 11 '23 02:05

SleepyX667