In Eclipse there is a feature which is called "Open Type in Hierarchy". We use the shortcut: Ctrl
+ Shift
+ H
on Windows or Cmd
+ Shift
+ H
on Mac. It provides special characters (*, ?, etc.). So you can list Java types with specific pattern.
Open Type in Hierarchy in Eclipse (Screenshot)
When I tried to list all classes in IntelliJ, I wasn't able to get the same result. Probably IntelliJ doesn't understand this "*" character.
Search Everywhere in IntelliJ (Screenshot)
Is there any kind of search mechanism in IntelliJ to get the same result?
Thank you for your help.
If you use ctrl
+shift
+f
(to find in files) you can hit alt
+x
to enable regex searching. It's got all kinds of useful stuff.
ctrl
+n
(the class search) also understands '*', but not regex.
ctrl
+h
will show a hierarchy, but I'm not aware of a filter mechanism that might help there.
You can find other useful shortcuts here (and their Mac equivalents): https://resources.jetbrains.com/storage/products/intellij-idea/docs/IntelliJIDEA_ReferenceCard.pdf
In you first screenshot you seem to be searching a jar; in the 2nd you're actually searching 'in all places'. If you click on that dropdown you can restrict where you're searching. The filtering button might also be helpful.
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