1、安装go插件
go
vscode-icons
2、配置user settings
{
"workbench.iconTheme": "vscode-icons",
"files.autoSave": "onFocusChange",
"go.buildOnSave": true,
"go.lintOnSave": true,
"go.vetOnSave": true,
"go.buildFlags": [],
"go.lintFlags": [],
"go.vetFlags": [],
"go.coverOnSave": false,
"go.useCodeSnippetsOnFunctionSuggest": false,
"go.formatOnSave": true,
"go.formatTool": "goreturns",
"editor.fontSize": 16,
"go.goroot": "/usr/local/go",
"go.gopath": "/Users/rongxr/Desktop/goProject"
}
有疑问加站长微信联系(非本文作者)