-
Notifications
You must be signed in to change notification settings - Fork 645
Feature Request: open Peek References when Ctrl-click is on the symbol in its declaration #2451
Comments
@inliquid This would be a feature request for VS Code itself as the keybindings for Therefore, please log your request at https://github.com/Microsoft/vscode |
@ramya-rao-a but how is possible that |
Ctrl+Click -> Go to definition Are you saying that |
@ramya-rao-a |
Ctrl+Click is bound to the Both these behaviors are implemented in VS Code core. The In the Go extension, we have registered a
The keyboard bindings for these are set in VS Code core. Hope this helps. |
Still, it works in |
I took another read at your original issue description. What you are asking is for the |
@ramya-rao-a yes |
Ah! Understood. This will still be useful coming from core VS Code as this feature is language agnostic. I would strongly suggest you to create an issue in the VS Code repo. If it is concluded in that issue that each language extension is responsible for this, then I will re-open this issue. Thanks for your patience. |
By default, with
Ctrl-click
you go to symbol definition, f.e. to a function declaration. When you makeCtrl-click
on a declared name, VS Code in fact does nothing, which seems counter-intuitive. In most of the cases I need toShift-F12
to see the usages of that symbol or if I want to go back from that place after some navigation happened around that symbol.I think it would be very useful, if when you
Ctrl-click
on a function, variable, or a type name in a place where the symbol is defined, VS Code will open aPeek References
of that symbol. This would be close to what Goland does by default and what I personally found extremely helpful.I also found that as a kind of expected and intuitive behavior it actually works in some other extensions like
CSS Peek
. So I wonder, why not implement this for Go extension?The text was updated successfully, but these errors were encountered: