[英]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 在Java中,如果要在类
A
使用另一个包的类,则可以
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中,是否有一种在上面的导入行中选择
B
的内置方法,并查看当前A
类中B
的例程的所有A
?
在IntelliJ 14.0.3 Community Edition中你可以做到这一点 - 在导入时将光标放在类名上,方法的出现就像在滚动条上突出显示一样。
Place the cursor on the import
keyword and use Highlight Usages in File ( Ctrl Shift F7 ). 将光标放在
import
关键字上,然后使用文件中的突出显示用法 ( Ctrl Shift F7 )。 Then you can use Find Next and Find Previous to navigate between the occurrences. 然后,您可以使用“ 查找下一个”和“ 查找上一个”在事件之间导航。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.