简体   繁体   English

如何在Eclipse中查找某个变量/方法的所有出现? 即相当于Android Studio的“ cmd + b”

[英]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.

相关问题 如何将静态变量调用为非静态方法,即我需要调用maxId变量来插入方法 - how to call the static variable to non static method, i.e I need to call the maxId variable to insert method 实施 (A ^ B) % C 即 pow(A, B) % C - Implementing (A ^ B) % C i.e, pow(A, B) % C 如何在 Android TextView 中使用“&”即和符号 - How to have "&" i.e and symbol in Android TextView 在 Eclipse 中查找所有出现的函数 - Find all occurrences of a function in Eclipse 如何找到在 Android Studio 中使用方法或变量的位置(快捷方式) - How can i find where a method or a variable is used in Android Studio (shortcut) 如何从方法退出,即在Java的此递归中如何从函数返回? - How to exit from a method, i.e how can i return from a function in this recursion in java? 如何使用带有三个参数的 collect 方法,即“collect(supplier, accumulator, combiner)”在列表中添加整数 - How to use collect method with three params i.e "collect(supplier, accumulator, combiner)" to add integers in a list 在替换方法中没有得到x和y的值,即(10和5)? - Not getting the value x and y i.e (10 and 5) in the replace method? Android Studio E / dalvikvm:无法找到类...从方法引用 - Android Studio E/dalvikvm: Could not find class… referenced from method 如何在 DCIM 目录 (Scoped Storage) Android Q 中创建隐藏文件夹 ieMyFolder [(dot)MyFolder] - How to create a hidden folder i.e .MyFolder [(dot)MyFolder] in DCIM directory (Scoped Storage) Android Q
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM