Skip to content

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

@inliquid

Description

@inliquid

Initially this issue was opened in vscode-go extension repo: microsoft/vscode-go#2451

Maintainer (@ramya-rao-a) asked to reopen it here.

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.

Metadata

Metadata

Assignees

Labels

editor-contribEditor collection of extraseditor-symbolsdefinitions, declarations, referencesfeature-requestRequest for new features or functionalityon-release-notesIssue/pull request mentioned in release notesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions