Intellisense不起作用的golang测试文件 [英] Intellisense not working golang test files
问题描述
标题说明了一切.我打开一个测试文件.键入 $ package.
.什么都没发生.这不是一个延迟问题.这不是一个空包.如何获取智能感应?
Title says it all. I open a test file. Type $package.
. Nothing comes up. It's not a delay issue. It's not an empty package. How do I get intellisense to turn on?
更新:我已经与VSCode-Golang团队一起打开了故障单.当我们找到更多信息时,我将在此处报告. https://github.com/Microsoft/vscode-go/issues/2278
Update: I've open a bug ticket with the VSCode-Golang team. As we find more information, I'll report back here. https://github.com/Microsoft/vscode-go/issues/2278
对于那些不赞成投票的人:请遵循社区标准并解释原因.
For those down voting: please follow the community standard and explain why.
推荐答案
我不确定原因和原因,但是解决方案是在VSCode中重新安装所有Go工具.查找开始:安装/更新工具".我全部选中了.安装完成后,重新启动VScode.此时,自动完成功能已打开.
I'm not sure as to the whys and the wherefores, but the solution was to reinstall all of the Go tools in VSCode. Look for "Go: Install/Update Tools". I selected them all. Once they installed,restart VScode. At this point autocomplete turned on.
在事情破裂之前,我不记得VSCode的更新.如果遇到此问题,请尝试在VScode中重新安装工具.
I didn't remember a VSCode update before things broke. If you run into this issue, try reinstalling the tools within VScode.
这篇关于Intellisense不起作用的golang测试文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!