Re:Visual Studio Code for Go
by sethammons on Thursday March 03, 2016 @04:03PM
(#11220018)
One of my required features is seeing the method signature when my cursor is on the method name; I don't want to have to enter a command to see the signature. In sublime, the bottom bar will passively show me `func Unmarshal(data []byte, v interface{}) error` when I cursor over json.Unmarshal. I'd really like it if it also showed me the type of the variable I was cursored over, but I digress. Is this possible in your extension?
[ Parent
| on HN ]
Yes - the vscode-go extension will show you function signatures (and type definitions and other symbol definitions) on hover.
If you hold down `cmd`/`ctrl` during hover you additionally get a preview of the definition source code (signature and implementation).