How to find usages using Eclipse IDE?

后端 未结 7 1422
逝去的感伤
逝去的感伤 2020-12-25 09:49

I have following code:

public class MyClass{
   ...
}

At same workspace I have following class

public class AnotherClass{
          


        
7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-25 10:18

    For your case, I think both of (Ctrl +Shift+G) and (Ctrl +Alt+H) work.

    To make it more clear:

    • (Ctrl +Shift+G) is shortkey for Search->References->workspace

    • Ctrl +Alt+H is short key for Call hierarchy.

    Some other useful short keys like:

    • (Ctrl+G) : Search->Declaration->worksapce
    • (Alt+Left) : Back position
    • (Alt+Right) : Forward position

提交回复
热议问题