Vscode write go code how to configure
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!