Quickest way to jump to type of variable

Answered

Sounds so simple but I don't now how to.

Assume this code:

Cursor is over `$result` and then I have e.g. "view / type info":

 

Perfect! How to I get "one click" to the actual type `\PHPUnit\Framework\TestResult` here?

I know there is "quick type definition":

But that's not the same.

Or I can press CMD and hover over the type:

and I can click there and I get this:

But even there, click on `TestResult` doesn't change a thing (this window only navigates within).

I found at least 3 ways to get more info about the variable, but not quick way (few keystrokes / mouse interactions) to directly get to the variable type (if applicable, of course).

 

thanks!

4 comments
Comment actions Permalink

Ctrl+Shift+B on Windows. The action is called "Main menu | Navigate | Go to Type Declaration"

 

0
Comment actions Permalink

THATS IT!

 

On OSX it's CMD-shift-b or cmd-shift-mouse 1

 

Thank you!

 

0
Comment actions Permalink

You're welcome :)

0
Comment actions Permalink

Immediately found a small issues of sorts => https://youtrack.jetbrains.com/issue/WI-55398

but otherwise, this is awsome…

 

0

Please sign in to leave a comment.