IntelliJ: shortcut to view usage (routines) of 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;

      

Is there a built-in way B

in IntelliJ to select in the import line above and see all occurrences of subroutines B

in the current class A

?

+3


source to share


2 answers


Place your cursor on a keyword import

and use "Use Selection" in file ( Ctrl Shift F7). Then you can use Find Next and Find Previous to navigate between occurrences.



0


source


in IntelliJ 14.0.3 Community Edition you can do just that - place the cursor on the class name in the import and the method entries will be highlighted in the scrollbar.



+2


source







All Articles