Home > Development Tools > VSCode > Does VSCode support go language?

Does VSCode support go language?

青灯夜游
Release: 2023-01-16 15:28:50
Original
2948 people have browsed it

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.

Does VSCode support go language?

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:

Does VSCode support go language?

##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:

Does VSCode support go language?

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

Does VSCode support go language?

Select and press Enter to execute the command (or click the command with the mouse)

Does VSCode support go language?

Due to network reasons, during this download process Basically everything goes wrong.

Solution:

2、GOPROXY

go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn  # 将代理设为国内源
Copy after login

Does VSCode support go language?Then continue the vscode plug-in operation. The successful output is as follows:

Does VSCode support go language?For more knowledge about VSCode, please visit:

vscode tutorial

! !

The above is the detailed content of Does VSCode support go language?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template