banner
keney

keney

remain optimistic
twitter

Running Go in VSCode

Configure VSCode Development Environment#

Here, VSCode is used for development

1. Install the GO Plugin#

First, install the plugin in VSCode

1.1 Install via the Go extension plugin

Install the Go plugin in the extensions

  • ctrl+ shift + p type Go All Commands
  • Or ctrl+ shift + p directly find Go/Update Tools, select all tools, and confirm the installation.

After installation, the console output will be:

1.2 Install via command

In the cmd window, enter the following commands to install

go get -v github.com/mdempsky/gocode
go get -v github.com/uudashr/gopkgs/v2/cmd/gopkgs
go get -v github.com/rogpeppe/godef
go get -u github.com/ramya-rao-a/go-outline
go get -v github.com/sqs/goreturns

Note: The cmd window needs to be run as administrator

Finally, installing the development dependencies for Go will provide syntax hints, package hints, and other features. The Go development environment in VSCode is now set up.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.