Go to Type Definition #3833
Labels
in editor
Relates to code editing or language features
in lsp/analysis server
Something to be fixed in the Dart analysis server
is enhancement
Milestone
Is your feature request related to a problem? Please describe.
Hi! I'm looking for the way to go to type definition of var when I omitting local variable type like this:
I can't find fast way(hotkey or something) to go to type definition of myVar.
There is no problem to open type definition if you annotate variable type like this:
here you can set cursor to MyType and press F12(in default hotkey layout) and MyType definition will open, but it won't work in example before (F12 will show you list of references).
Describe the solution you'd like
It would be nice to have some kind of Go to Type Definition hotkey. Like set cursor to myVar and press some hotkey to open type definition of MyType
Describe alternatives you've considered
As alternative you can hover myVar with mouse cursor and popup with type name will appear. After that you can use Go to Symbol mechanic(Ctrl + T) and type name of type(sorry :) ) there.
The text was updated successfully, but these errors were encountered: