Java IntelliJ 显示有关用法的方法参数提示 - 如何禁用它
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40866202/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
IntelliJ shows method parameter hints on usage - How to disable it
提问by G.S
I am new to IntelliJ and recently updated to IntelliJ-2016.3.
In the editor for Java code, it shows the method signature upon usage. How do I disable this feature?
我是IntelliJ 的新手,最近更新到IntelliJ-2016.3。
在 Java 代码的编辑器中,它显示了使用时的方法签名。如何禁用此功能?
Here's an example of a method's signature and its call site:
This behavior was not there in 2016.1.4 version. I am seeing this after update.
Any help is appreciated!
这种行为在 2016.1.4 版本中不存在。更新后看到这个
任何帮助表示赞赏!
回答by G.S
From the what's new page:
从最新消息页面:
Parameter hints
The editor now shows parameter hints for literals and nulls used as method arguments. These hints make code much more readable.
If you find hints redundant for a certain method, you can tell the IDE not to show hints for this method. To disable hints completely, uncheck Settings → Editor → General → Appearance → Show parameter name hints.
参数提示
编辑器现在显示用作方法参数的文字和空值的参数提示。这些提示使代码更具可读性。
如果您发现某个方法的提示是多余的,您可以告诉 IDE 不要显示此方法的提示。要完全禁用提示,请取消选中设置 → 编辑器 → 常规 → 外观 → 显示参数名称提示。
(emphasis is mine)
(重点是我的)
回答by wired00
I find it helpful to use a shortcut such as P + shift + command
to toggle parameter type hinting as needed. I don't want it disabled entirely.
我发现使用快捷方式很有帮助,例如根据P + shift + command
需要切换参数类型提示。我不希望它完全禁用。
- open preferences
- click Keymap
- filter by
parameter
- double click on
Toggle parameter name hints
- enter key combination ie,
P + shift + command
- Apply and Ok
- Now the key combo will toggle hints for you.
- 打开偏好
- 单击键盘映射
- 过滤
parameter
- 双击
Toggle parameter name hints
- 输入组合键,即
P + shift + command
- 申请并确定
- 现在按键组合将为您切换提示。