在Go中,是否有类似于GoLand中的VScode文档信息的功能?

huangapple go评论71阅读模式
英文:

Is it possible to get documents info like GoLand for VScode in Go?

问题

在使用VSCode进行Go开发之前,我最近尝试使用了GoLand,并发现GoLand有一个功能,当鼠标悬停在函数上时,会显示函数的文档信息,就像下面的图片一样。

是否可以在VSCode中设置这个功能?

在Go中,是否有类似于GoLand中的VScode文档信息的功能?

在Go中,是否有类似于GoLand中的VScode文档信息的功能?

英文:

Before I used VScode for Go development and recently I've tried to use GoLand and found out there's a feature in GoLand that it will show the document info for the functions when mousing over, like the pics below.

Is it possible to set up in VSCode?

在Go中,是否有类似于GoLand中的VScode文档信息的功能?

在Go中,是否有类似于GoLand中的VScode文档信息的功能?

答案1

得分: 1

我不确定在文档悬停中包含示例代码片段,但对于常规文档,如果你使用Go扩展,那应该在VSCode中起作用。

如果不起作用,我猜可能是另一个问题,导致Go扩展(以及语言服务器)无法正确处理该项目。

在Go中,是否有类似于GoLand中的VScode文档信息的功能?

英文:

I am not sure about inclusion of example snippets in the documentation hover, but for regular documentation, that should work in VSCode if you use the go extension.
在Go中,是否有类似于GoLand中的VScode文档信息的功能?

If not, I guess there is another issue so the go extension (and the language server) couldn't correctly process the project.

huangapple
  • 本文由 发表于 2022年3月15日 16:05:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/71478821.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定