Reputation:
In Java, if you want to use the classes of another package in your class A
, you do
import mypackage.B;
import mypackage.C;
In IntelliJ, is there a built-in way of selecting B
in the import line above and see all the occurences of B
's routines in the current class A
?
Upvotes: 3
Views: 125
Reputation: 26462
Place the cursor on the import
keyword and use Highlight Usages in File (CtrlShiftF7). Then you can use Find Next and Find Previous to navigate between the occurrences.
Upvotes: 0
Reputation: 71
in IntelliJ 14.0.3 Community Edition you can do exactly that - place cursor on the class name in import and the occurences of the methods will be like highlighted on the scroll bar.
Upvotes: 2