How to configure Intellij IDEA to show Scala data types when you hover over a field

To configure Intellij IDEA to show Scala data types when you hover over a field, you have to go into the Intellij settings to enable this feature. (On Mac OS X you can also use the [Ctrl][Shift][P] keystroke when you’re on a field whose type you want to know/confirm.)

To enable this hover-over feature, follow these steps:

  • File > Other Settings > Default Settings ...
  • Go to “Languages & Frameworks” > Scala
  • Go to the Editor tab
  • Enable “Show type info on mouse hover after X ms”

After doing this and accepting your changes, you should see your field’s data type when you hover over it in the IDE.

This works with Intellij IDEA Version 15.x on Mac OS X.

I got pointed in the right direction on how to enable this feature from this slightly out of date blog post.