I have following code:
public class MyClass{
...
}
At same workspace I have following class
public class AnotherClass{
PC:
Mac:
To my knowledge, both of Ctrl+Shift+G and Ctrl+Alt+H should work.
For Your Information:
Ctrl+Shift+G --> is the short key for Search --> References --> workspace
Ctrl+Alt+H --> is the short key for Call hierarchy.
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:
Try right-click on MyClass
and then References->Workspace
. I think this might be what you're looking for.
Also works on methods, variables etc.
Right click on Myclass, find references in project|workspace.
Open call hierarchy, open inheritance hierarchy.
Select the resource (method name, class name ) & right click . You will find a menu with title 'Open Call Hierarchy' (shortcut key : alt + Ctrl + H ). This will enlist all the usage in project.