Home >Development Tools >VSCode >Does VSCode support go language?
VSCode supports go language, just install the plug-in. Installation method: 1. Start vscode, click the "Extensions" icon in the activity bar to open the "Extensions" view; 2. Enter "go" in the search box, select the "Go for Visual Studio Code" plug-in, and click "Install" That’s it.
The operating environment of this tutorial: Windows 10 system, Visual Studio Code version 1.74.3, Dell G3 computer.
VSCode supports go language, just install the plug-in.
Visual Studio Code and Go extensions provide IntelliSense, code navigation and advanced debugging. In this quickstart, you configure Visual Studio Code. Then, you'll write, run, and debug a sample Go program.
How to install the go plug-in for VSCode
Start vscode, click the "Extended" icon in the activity bar to open the "Extended" view - >Search go, select the Go for Visual Studio Code plug-in and click to install. As shown in the picture:
##Extended knowledge: vscode installs the go language development package
Provide us with functions such as code prompts and automatic code completion when developing in Go language. Press Ctrl Shift P on the Windows platform and Command Shift P on the Mac platform. At this time, an input box will pop up on the VS Code interface, as shown below: We enter >go:install in this input box, and the relevant commands will be automatically searched below. We select the command
Go:Install/Update Tools
Due to network reasons, during this download process Basically everything goes wrong.
2、GOPROXY
go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn # 将代理设为国内源
Then continue the vscode plug-in operation. The successful output is as follows:
For more knowledge about VSCode, please visit:
vscode tutorialThe above is the detailed content of Does VSCode support go language?. For more information, please follow other related articles on the PHP Chinese website!