不要进入 vscode 工作区设置用户设置

go not in vscode workspace settings user settings

我在 VSCode 中安装了 Go 扩展,在 Extension Web PageHow to use this extension? 部分中,它提到了许多 go 设置,例如 go.toolsGopathgo.gocodeAutoBuildgo.formatOnSave

但是当我使用 Ctrl + ,Open the User Settings 时,我 没有 看到任何 Go设置,用户设置中没有 Go 设置块:

如何在用户设置中显示 Go 设置?

在我的例子中,通过将 Go Extension 设置为 Enable (Always),然后 Go Settings (Go configuration) 将显示在用户设置中。

步骤:

  1. 在 VS Code 中打开扩展选项卡(键盘快捷键:Ctrl+Shift+X),然后搜索 "Go".
  2. 点击齿轮并设置Enable (Always)
  3. 点击重新加载,Go configuration将出现在用户设置中。

截图: