跟着百度改了很多东西,最后发现是go插件导致的,一保存就自动格式化代码。 最后改了setting.json的配置(https://stackoverflow.com/questions/35571033/how-to-set-vscode-format-golang-code-on-save): "[go]": { "editor.insertSpaces": true, "editor.formatOnSave": true, "editor.defaultFormatter": "gola...