美文网首页
VSCode Golang关闭自动代码格式化formatOnSa

VSCode Golang关闭自动代码格式化formatOnSa

作者: 真诚的狗子 | 来源:发表于2022-07-21 03:20 被阅读0次

跟着百度改了很多东西,最后发现是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": "golang.go" },

相关文章

网友评论

      本文标题:VSCode Golang关闭自动代码格式化formatOnSa

      本文链接:https://www.haomeiwen.com/subject/ckxuirtx.html