gerard gerard - 1 year ago 120
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download