Is there any way to navigate to a type declaration of a generic parameter? Right now
Copy code
val foo: Foo = createFoo()
with caret somewhere in
createFoo
, pressing
cmd + shift + b
will navigate to
Foo
. Nice 👍
What I want is with:
Copy code
val foo: Flow<Foo> = createFooFlow()
with caret somewhere inside
createFooFlow
to navigate to the generic parameter,
Foo
, instead of
Flow
. Is there a shortcut for this, or any other way to easily navigate to
Foo
?
👀 1
j
Javier
04/15/2021, 10:14 AM
I guess you are asking this because you are inferring the type? I haven't tried, but if type hints are not clickable, this can be a feature request
w
wasyl
04/15/2021, 10:16 AM
Yes exactly, I added types in the examples for clarity.
I found myself navigating to wrapped types more and more often and hoped there’s a shortcut or some trick available