在VSCode中有没有一种方法可以找到特定类型的所有变量?

huangapple go评论64阅读模式
英文:

Is there a way in VSCode to find all variables of a certain type

问题

我想要在整个项目中找到我创建的某个 Go 结构类型的所有变量。也许有一个 VSCode 扩展可以实现这个功能。

英文:

I want to find all variables of a certain go struct type I have created across my whole project. Maybe there is a VSCode extension that can achieve this.

答案1

得分: 1

如果你右键点击一个结构体,然后点击“查找所有引用”,你可以找到对该结构体的所有引用。为了使此功能正常工作,你可能需要安装Go扩展。

英文:

If you right click on a struct and then click on 'Find all references' you can find all references to that struct. You might need the Go extension installed for this to work.

huangapple
  • 本文由 发表于 2022年6月2日 16:38:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/72473191.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定