How do I view the type of a scala expression in IntelliJ

前端 未结 10 1004

The Eclipse scala plugin has a nice feature which shows you the type of a variable when you hover the mouse over it. How do I see the same information with the IntelliJ plu

10条回答
  •  醉梦人生
    2020-12-07 12:26

    You can hit Ctrl + Q on a variable or method signature to view its type.

    There is also a neat trick to view type of any expression: select the expression and type Ctrl + Alt + V. This will show Extract variable dialog with expression type to be extracted shown for convenience.

提交回复
热议问题