解決vscode沒法提示golang的問題

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

 

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

  • 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.

 

沒想到有人對這個感興趣,那就翻譯下:工具

 

問題:自動補全功能中止工做。應該怎麼作?翻譯

1. 在終端中運行 gocode close,而後再試試。debug

2. 若是仍然有問題,運行go get -u github.com/mdempsky/gocode ,更新下工具。code

3. 若是還有問題,運行 gocode -s -debug,而後再試試。terminal

 

但願有所幫助。get

相關文章
相關標籤/搜索