Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Feature Request: open Peek References when Ctrl-click is on the symbol in its declaration #2451

@inliquid

Description

@inliquid

By default, with Ctrl-click you go to symbol definition, f.e. to a function declaration. When you make Ctrl-click on a declared name, VS Code in fact does nothing, which seems counter-intuitive. In most of the cases I need to Shift-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 a Peek 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions