2

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.

Beryllium
  • 12,808
  • 10
  • 56
  • 86
Guille
  • 2,248
  • 3
  • 24
  • 42
  • 1
    Tooltip appears when mouse over variable with Ctrl pressed – Nyavro Nov 27 '15 at 09:02
  • 1
    Possible duplicate of [IntelliJ IDEA scala type info](http://stackoverflow.com/questions/15822197/intellij-idea-scala-type-info) – Łukasz Nov 27 '15 at 10:03

3 Answers3

6

File / Settings / Languages & Frameworks / Scala / Editor / Show type info on mouse hover after, ms ....

Scala settings

Suma
  • 33,181
  • 16
  • 123
  • 191
2

When you have your cursor on variable, use Alt + =. By cursor I mean the caret, not mouse pointer.

Łukasz
  • 8,555
  • 2
  • 28
  • 51
0

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.

k.c. sham
  • 381
  • 2
  • 6