加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

解决vscode无法提示golang的问题

发布时间:2020-12-16 09:35:09 所属栏目:大数据 来源:网络整理
导读: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/mdempsk

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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读