先远程连接 linux
先用vscode 连接远程linux服务器
开始安装go插件
Install All
番外篇
goreturns 不支持 gomodule, 设置 settings.json: “go.formatTool”: “goimports”
下面是我的 settings.json :
{
"go.goroot": "",
"go.gopath": "",
"go.inferGopath": true,
"go.autocompleteUnimportedPackages": true,
"go.gocodePackageLookupMode": "go",
"go.gotoSymbol.includeImports": true,
"go.useCodeSnippetsOnFunctionSuggest": true,
"go.useCodeSnippetsOnFunctionSuggestWithoutType": true,
"go.docsTool": "gogetdoc",
"remote.SSH.showLoginTerminal": true,
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\wsl.exe",
"go.formatTool": "goimports",
"go.useLanguageServer": true,
"remote.SSH.remotePlatform": {
"v_zzzzhou": "linux",
"devcloud": "linux",
"wz": "linux"
},
"terminal.integrated.shell.linux": "/bin/bash",
}