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

Viewed 137

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?

enter image description here

enter image description here

1 Answers

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. enter image description here

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

Related