Eclipse: Java,查看使用类的位置

Eclipse 中有没有一种方法可以选择一个 Java 类,然后打开一个项目中使用该类的所有 Java 文件的列表?

51454 次浏览

Put the cursor on the class name (works for methods, constructors, fields, etc, too), press Ctrl+Shift+G and enjoy.

right-click on the class, and select references/Project

For searching all of the workspace, CTRL+SHIFT+G

Since Eclipse 4.12 you can also use the code minings feature:

Eclipse minings settings