简体   繁体   中英

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.

How do we do this in Eclipse?

CTRL + SHIFT + G

或右键单击引用->工作区(或项目)。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM