What's the keyboard shortcut to go to a type declaration from an interface during runtime?

During debugging I have a type instance which implements an interface. The type is known during runtime. What's the shortcut to go to that type? Currently I have to hover over the interface variable, look at the type, hit ctrl-N and type or select the type name. I think there's a direct jump to the type?

In the example below, the caret is at _userRepository. I would like to jump to the type declaration for the type 'UserRepository'.


cap.gif

1 comment
Comment actions Permalink

I'm not aware of any shortcut that would lead you there directly, but you could use F12 (Goto Declaration) on the field usage to get to the field declaration, then click on the type name and press F12 again (or Ctrl+Click the type name), what leads you to the type declaration. Hope this helps.

0

Please sign in to leave a comment.