I have been using VSCode for programming in Golang and sometimes GoLand trial version. I want to stick with VSCode but I cannot find the below-mentioned capabilities in VSCode. Can anyone tell me if it is possible or not
GoLand has all of these and that is what makes it amazing. Other than that most of the things are similar.
Actually it is possible to do all three things in VS Code as well.
1. List of all functions, structs, interface - Code Outline
There is a great extension Code Outline that works very well with Go code. I'm using it successfully without any problems.
2. Is there a way to click on an interface and see who all implement it?
According to VS Code documentation, it is possible to go to definition using Ctrl+F12 shortcut. It seems to work well for Go source code at this point.
3. Is there a way to click on a struct and see what all interfaces it implements?
Similarly as with answer above, and according to documentation, Ctrl+F12 shortcut seems to be working well in that case.
For an interface, this shows all the implementors of that interface and for abstract methods, this shows all concrete implementations of that method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With