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

Issue

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.

Solution

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.

Answered By – Thijs van der Heijden

Answer Checked By – Marilyn (GoLangFix Volunteer)

Leave a Reply

Your email address will not be published.