解决vscode无法提示golang的问题

Posted larryzeal

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决vscode无法提示golang的问题相关的知识,希望对你有一定的参考价值。

https://github.com/Microsoft/vscode-go/wiki/Go-with-VS-Code-FAQ-and-Troubleshooting

 

Q: Auto-completions stopped working. What do I do?

  • Run gocode close in a terminal and try again.
  • If it still doesnt work, run go get -u github.com/mdempsky/gocode to update the tool. If you use the go.toolsGopath setting, then set GOPATH to the value in that setting before running go get so that the tool is installed/updated in the right location
  • If it still doesnt work, run gocode -s -debug in a terminal and try again. Results from gocode will show up in the terminal. If you see expected results in the terminal, but not in VS Code, log an issue in the vscode-go repo, else log an issue in the gocode repo.

以上是关于解决vscode无法提示golang的问题的主要内容,如果未能解决你的问题,请参考以下文章

Vscode golang初始化配置

解决vscode中golang插件依赖安装失败问题

Golang 在mac上用VSCode开发Delve调试

vscode-golang跳转定义无效问题

vscode安装go的提示工具和vscode关于提示的设置

vscode用啥符号把某一段代码包起来,类似C#的#region?