英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论