Vscode installation process of go plug-in and language installation package, if there is no go environment and vscode, you can install go and vscode first. The next steps are mainly to install go plug-ins and language development packages through vscode plug-ins
Start vscode select plug-in – > search go select go for visual studio code plug-in and click Install. As shown in the figure:
When developing go language, it provides us with functions such as code prompt, automatic code completion and so on.
Press Ctrl + Shift + P for Windows platform and Command + Shift + P for Mac platform. At this time, an input box will pop up in the vs code interface, as shown in the following figure:
Enter > go: install in this input box, and relevant commands will be searched automatically. We choose go: Install / update tools
Select and enter to execute the command (or click the command with the mouse)
Due to network reasons, there will be errors in this download process.
go env -w GO111MODULE=on go env -w GOPROXY= https://goproxy.cn #Set agent as domestic source
Then continue the operation of vscode plug-in. The successful output is as follows: