gerard gerard - 25 days ago 15
Scala Question

Evaluate expression in intellij

I want to know if there is a way in intellij to know the type of a val with a shortcut or a button?

For instance:

val t = 3


If i select t and do a certain shortcut, can I know that t is ant integer?
Thanks

Answer

According to How do I view the type of a scala expression in IntelliJ, Alt + = on expression should work.

Another option would be Ctrl + Q - quick documentation lookup. It could be used nearly anywhere in editor, and is capable to show documentation for type, type of variable, etc.

Comments