To configure VSCode to work with Go you will need to install a few things.
-
Open VSCode.
-
In VSCode, open the Extensions tab on the left (
Ctrl + Shift + X
). -
Search for
Go
and install the first extension (by Go Team at Google). -
Press
Ctrl + Shift + P
, search forGo: Install/Update Tools
.
- From the list, select all extensions.
- Wait for installation to finish and restart VSCode.