在/home/book/.config/Code/User/settings.json中加入下面部分
"[go]": {
"editor.insertSpaces": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.organizeImports": false
}
},
Settings.json全内容
{
"workbench.colorTheme": "Visual Studio 2017 Light - C++",
"editor.fontSize": 16,
"explorer.confirmDelete": false,
"go.formatTool": "gofmt",
"window.zoomLevel": 1,
"go.lintOnSave": "off",
"[go]": {
"editor.insertSpaces": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.organizeImports": false
}
}
}