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.
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.
Press 2 x Shift and type what you searching for
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With