IntelliJ IDEA提示方法的参数

new*_*ron 119 intellij-idea

我只是从eclipse换成IntelliJ,我找不到这个特殊的功能.

在Eclipse中,当光标位于方法调用的括号内并按Ctrl + Space时,它会告诉我此方法采用哪些参数.IDEA中有类似的东西吗?

Yuv*_*l F 135

使用CTRL + P(Mac的CMD + P),它应该显示类似的东西.您也可以找到方便的参考卡(PDF).

  • 动作名称是`参数信息(在方法调用参数内)`(这对于在Preferences> keymap中搜索它很有用). (15认同)

Luk*_*kas 31

CTRL+ P(或CMD+ P为Mac)

IntelliJ IDEA EAP中有新功能:

参数名称提示

设置>编辑器>常规>外观

预习: 在此输入图像描述

来自JetBrains的关于此功能的视频:https://youtu.be/ZfYOddEmaRw

相关问题 - IntelliJ显示使用方法参数提示 - 如何禁用它

我正在使用:

IntelliJ IDEA 2016.3 EAP
Build #IU-163.5219.11, built on September 27, 2016
Run Code Online (Sandbox Code Playgroud)


小智 25

是的 - 只需按CTRL-P即可.


Uni*_*cco 10

通过在IntelliJ/PhpStorm设置中调整"Autopopup"-timer,自动显示参数助手.

导航:

File -> Settings -> Editor -> General -> Code Completion -> Autopopup in (ms)
Run Code Online (Sandbox Code Playgroud)

把它设置为你喜欢的任何东西.等等5毫秒.

IntelliJ中的Autopopup参数信息