IntelliJ IDEA scala类型信息 [英] IntelliJ IDEA scala type info

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

问题描述

Eclipse scala插件有一个非常好的信息。人们可以将鼠标悬停在函数定义,val,var,函数调用等上,并获取类型信息。这对我来说非常有用,可以确保类型兼容性,尤其是在我尝试新事物的时候。

The Eclipse scala plugin has a very nice info. One can hover over pretty much anything be it a function definition, val, var, function call etc and get type info. This is immensely useful to me to ensure type compatibility especially when I am trying new things out.

IntelliJ Idea 12.1中是否有类似功能(此评论的最新版本)?

Is there a similar feature in IntelliJ Idea 12.1 (the latest version as of this comment)?

我能找到的最接近的东西是类型信息设置。在Mac OS 10.7.5上,默认的键绑定对我来说甚至都不起作用。即使经过调整之后,它也无法像在Eclipse中那样普遍使用,它显示了几乎所有内容的类型。有没有人设法让这个工作?我理想的设置就是像在Eclipse中一样悬停时的类型信息。

The closest thing I could find was the type info setting. The default key binding did not even work for me on Mac OS 10.7.5. Even after tweaking, it does not work as universally as it does in Eclipse which shows a type for pretty much everything. Has any one managed to get this to work? My ideal setting would be type info on hover just like in the Eclipse.

我听说过有关Scala的IntelliJ IDE的好消息,但到目前为止Eclipse Scala插件获胜了在

I have heard great things about the IntelliJ IDE for Scala but so far the Eclipse Scala plugin wins hands down.

推荐答案

要启用鼠标悬停类型信息,请转到设置 - > Scala并选择显示鼠标移动的类型信息延迟复选框。

To enable on mouse hover type information go to Settings->Scala and select the "Show type info on mouse motion with delay" checkbox.

这篇关于IntelliJ IDEA scala类型信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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