尝试更改符号时,VSCode会引发以下错误:
“重命名失败:gorename:找不到包含/home/hume/projects/go/main.go的软件包”
vscode 1.22.2 x64
go版本go1.10.1 linux / amd64
转到环境GOPATH / home / hume / projects / go
我settings.json
的如下:
{ "go.toolsGopath": "/home/hume/gotools" , "go.autocompleteUnimportedPackages": true , "go.inferGopath": true , "go.formatTool": "gofmt" , "go.vetFlags": [ "/src" ] }
谢谢。