Is there any way so that IntelliJ shows a tooltip with the type of a variable when you are programming with Scala?
I know that Eclipse has this feature. I have been looking for in the settings and I didn't find it.
Is there any way so that IntelliJ shows a tooltip with the type of a variable when you are programming with Scala?
I know that Eclipse has this feature. I have been looking for in the settings and I didn't find it.
File
/ Settings
/ Languages & Frameworks
/ Scala
/ Editor
/ Show type info on mouse hover after, ms ...
.
When you have your cursor on variable, use Alt + =. By cursor I mean the caret, not mouse pointer.
In MacOS IntelliJ 16.x, I observed that the compiler warning/error tooltip takes precedences to the type info tooltip. To force the type tooltip to show, use View > Type Info
menu option or ctrl + shift + p
(the default keymap) when the cursor is on the element you want to inspect.