Variable type hint not showing under the editor tab.

As I remember, when we click on some variable, Golang would show the variable type under the editor tab( I do highlighted above ). I looked for it to activate it but couldn't find it. Also when we click function calls, it was showing return value types so we were taking action according to this helpfull hint. Also couldn't activate that.

4 comments

> As I remember, when we click on some variable, Golang would show the variable type under the editor tab( I do highlighted above )

It's breadcrumbs panel, it doesn't show the type, only path to the current location.

>  I looked for it to activate it but couldn't find it. Also when we click function calls, it was showing return value types so we were taking action according to this helpfull hint.

You can use `Type info` action to see the type: https://www.jetbrains.com/help/idea/viewing-reference-information.html#expression-type-info of any reference or declaration or use Ctrl/Cmd+Hover for references:

1

That is helpfull and likely what i was looking for. But in this case, i have to use special key combination to show "Type info", what if i wanted to see that even On mause hover or On click?
Is there a way to do it? Maybe with a plugin?

0

> even On mause hover or On click?

I mentioned it:

> or use Ctrl/Cmd+Hover for references

 

For declaration it looks senseless to me. You're already on a declaration, you can see its type right in the editor or ctrl+hover its value.

1

Perhaps you can also enable the `Settings/Preferences | Editor | General | Show quick documentation on mouse move` option and get the documentation as well as the type of the element when you hover it.

0

Please sign in to leave a comment.