问题描述
Intellij IDEA显示了使用Java 10中的新“ var”功能创建的变量的类型提示。
但是,推断类型有时太长,以至于行长最终超出了宽度指南,如下面的屏幕截图所示:
是否可以使Intellij IDEA仅在悬停时显示类型提示?
解决方法
现在是not possible at the moment,您可以为链接的功能请求投票。
,
解决方法
禁用隐式类型的类型提示:
在要查看其类型的表达式上使用show type info
。
Windows Ctrl+Shift+P
上的快捷方式