Reputation: 10310
Let's say I have a code like this:
val request = buildRequest()
Problem: I want to see what the type of request
is and navigate to its declaration.
I can find out the type by hovering the variable or using Ctrl+Shift+P, but I haven't found an easy way to navigate to the type itself. command + click doesn't work here.
Question: How to navigate to the type declaration of a variable whose type is inferred?
Upvotes: 8
Views: 343
Reputation: 23
For Mac users
F1 or ⌃ + J - find out the type
⌘ + Shift + B - go to type declaration
Upvotes: 0
Reputation: 116
Have you tried using Ctrl + Shift + B keyboard shortcut?
This tip for Windows or Linux users.
Upvotes: 10