Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Vscode write go code how to configure

Shulou Source: shulou.com Published: 2022-06-02 08:28:31 11月16日 Update

This article mainly explains "how to configure vscode to write go code". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to configure go code by vscode".

Https://github.com/Microsoft/vscode-go/wiki/GOPATH-in-the-VS-Code-Go-extension

Configure it into workspace Setting.

{"window.zoomLevel": 1, "go.autocompleteUnimportedPackages": true, "go.gocodePackageLookupMode": "go", "go.gotoSymbol.includeImports": true, "go.useCodeSnippetsOnFunctionSuggest": true, "go.inferGopath": true, "go.gopath": "/ usr/local/bin/golang19/gopath/", "go.useCodeSnippetsOnFunctionSuggestWithoutType": true,}

One of the important options is

"go.inferGopath" is set to true.

"go.gopath" sets its own path

At this point, I believe that you have a deeper understanding of "vscode write go code how to configure", might as well come to the actual operation! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Configuration code content learning practical deeper important interest practicality practical easy to operate method more friends website path channel query Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Huawei Shulou Tech Info Xiaomi Microsoft