[英]How to find all occurrences of a certain variable/method in Eclipse? i.e the equivalent of “cmd + b” of Android Studio
Say, we have a constant class: 说,我们有一个常量类:
public class Constant {
...
public static final String UNIVERSAL_VARIABLE = "many classes will find me handy";
}
In AndroidStudio, if I hover to UNIVERSAL_VARIABLE and click cmd + b
, then it will show all classes where UNIVERSAL_VARIABLE are used, and on which line. 在AndroidStudio中,如果我将鼠标悬停在UNIVERSAL_VARIABLE上并单击
cmd + b
,则它将显示使用UNIVERSAL_VARIABLE的所有类以及在哪一行。
How do we do this in Eclipse? 我们如何在Eclipse中做到这一点?
CTRL + SHIFT + G
或右键单击引用->工作区(或项目)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.