- Launch the VS Code editor
- Open the extension manager or alternatively, press
Ctrl + Shift + x
- In the search box, type "go" and hit enter
- Find the Go extension by the GO team at Google and install the extension
- After the installation is complete, open the command palette by pressing
Ctrl + Shift + p
- Run the
Go: Install/Update Tools
command - Select all the provided tools and click OK
go mod init example.com/hello
go run helloworld.go