如何在 IntelliJ 中查看 scala 表达式的类型 [英] How do I view the type of a scala expression in IntelliJ

查看:16
本文介绍了如何在 IntelliJ 中查看 scala 表达式的类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse scala 插件有一个很好的功能,当您将鼠标悬停在变量上时,它会向您显示变量的类型.如何使用 IntelliJ 插件查看相同的信息?

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 plugin?

推荐答案

选择表达式并输入 Alt + =.

Select expression and type Alt + =.

如果要更改快捷方式,请转到 Preferences >Keymap 并在搜索字段中输入类型信息".

If you want to change the shortcut go to Preferences > Keymap and enter "Type Info" in the search field.

在旧版本中,它是 Shift + Ctrl + Alt + T.

In older versions, it's Shift + Ctrl + Alt + T.

这篇关于如何在 IntelliJ 中查看 scala 表达式的类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆