user1820845
user1820845

Reputation:

IntelliJ: Shortcut for seeing usages of (the routines of) an imported class

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

Answers (2)

Bas Leijdekkers
Bas Leijdekkers

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

Olha
Olha

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

Related Questions