Documentation and code completion

Hello there…

I’ve a fresh setup of Go, VSCode and Go plugin for VSC. Everything works but I can’t see documentation of any function during code completion. I can see it only when I point my mouse pointer on a function in code, i.e. not during code completion. How can I make it work or which key combination should I use to open the documentation during code completion?

P.S. Just for comparison, in GoLand and in all other IDEs of JetBrains I can press Ctrl+Q to see the documentation during code completion or during any other operation.

1 Like

I don’t know the answer for your question, but let me give you another advice. If you write a struct and want to fill names of variables press: Ctrl + . (dot), then choose filling option.

image

image

1 Like

I don’t know the answer for your question

Actually you’re very close to the answer.

press: Ctrl + . (dot)

Pressing Ctrl + / twice in a function call code completion resolves my problem.

initial state
forum.golangbridge .org/uploads/default/original/2X/2/2075a0d398908bcde4b018144e88501dd2a32289.png

first Ctrl + /
https://forum.golangbridge.org/uploads/default/original/2X/f/f61058fcca4be9dd727793f161aab17a8650e892.png

second Ctrl + /
https://forum.golangbridge.org/uploads/default/original/2X/6/61a7184ece5a1b448b9ab9e7b4c2d098ccac92d7.png

After that code completion will always be opened with a documentation until I close it by clicking on the X in the right top corner.

Interesting, is it the right way of reading documentation during code completion and does it need internet connection or can work in offline as well. Why it was engineered that way with two presses instead of only one? The information shown after the first press seems to be useful for debugging this feature only and not useful for any regular use.

P.S. There is a strange and silly restriction in this forum for new users that doesn’t allow to embed pictures/screenshots and doesn’t allow to put more than two links. This is why I provided only links and “damaged” one of them.

install godoc plugin in vscode plugin market or use goland for easy

install godoc plugin in vscode plugin market or use goland for easy

I don’t see this plugin in the extensions marketplace search results inside my VS Code.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.