为什么在IntelliJ的Java编辑器中添加了灰色的var:colon [英] Why grayed var:colon is added in Java editor in IntelliJ

查看:88
本文介绍了为什么在IntelliJ的Java编辑器中添加了灰色的var:colon的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了IntelliJ 2016.3.2 版本#IC-163.10154.41 建于2016年12月21日

I installed IntelliJ 2016.3.2 Build #IC-163.10154.41 Built on Dec.21, 2016

灰色的var:colon会自动添加到Java编辑器的调用方方法中参数的前面,如下所示(添加了灰色a:b :). 为什么会这样呢?我不想看到这些灰色的. 如何在配置中设置它? (我猜这是在IntelliJ的最新版本中发生的,因为我在另一台计算机上使用了较旧的版本,而没有出现此问题.)

grayed var:colon is automatically added in front of argument in a caller method in Java editor as you see below ( greyed a: b: are added). Why is this happening? I don't want to see these grayed ones. How to set it up in config.? (I guess this is occurring in the latest version of IntelliJ since I'm using older version in another machine without this problem.)

推荐答案

灰色名称后跟冒号是方法定义中的参数名称.

The grey names followed by the colon are the parameter names from the method definition.

如果您不想要它们,请右键单击灰色字词,然后选择Disable Parameter Name Hints.

If you don't want them, right click on a grey word and select Disable Parameter Name Hints.

这不是错误,而是功能;-)

It's not a bug, it's a feature ;-)

如果要重新激活它,请转到Settings-> Editor-> General-> Appearance->选项Show parameter name hints

If you want to reactivate it, go to Settings --> Editor --> General --> Appearance --> Option Show parameter name hints

这篇关于为什么在IntelliJ的Java编辑器中添加了灰色的var:colon的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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