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
?
在IntelliJ 14.0.3 Community Edition中你可以做到这一点 - 在导入时将光标放在类名上,方法的出现就像在滚动条上突出显示一样。
Place the cursor on the import
keyword and use Highlight Usages in File ( Ctrl Shift F7 ). Then you can use Find Next and Find Previous to navigate between the occurrences.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.