goland

Quick way to go to object's type definition in Goland


I can do Ctrl+Shift+P (on Linux) in Goland on a variable name to get the type of object it is (in a tooltip). Is there a quick way to go to the definition of that type?

Usually I have to type in the name again either via search or tapping Shift twice.


Solution

  • Use any of the below shortcuts:


    Please see the official GoLand documentation: Go to declaration and its type.