IntelliJ IDEA hint parameters of method
Asked Answered
E

5

119

I'm just swapping from eclipse to IntelliJ, and I can't find this particular feature.

In Eclipse, when the cursor is inside the brackets of a method-call and I press Ctrl+Space, it tells me which parameters this method takes. Is there something similiar in IDEA?

Esse answered 23/11, 2009 at 13:39 Comment(0)
E
137

Use Ctrl+P (Cmd+P for Mac), it should show something similar. You may also find the reference card (PDF) handy.

Encode answered 23/11, 2009 at 13:40 Comment(2)
The action name is Parameter info (within method call arguments) (this is useful for searching it in Preferences > keymap).Jadeite
@Arvidaa You can search in keymap by keystroke as well (magnifying glass with 3 blocks icon).Nadeau
T
32

Except CTRL+P (or CMD+P for Mac)

There is new feature in IntelliJ IDEA EAP:

Parameter name hints

Settings > Editor > General > Appearance

preview: enter image description here

Video from JetBrains about this feature: https://youtu.be/ZfYOddEmaRw

Related question - IntelliJ shows method parameter hints on usage - How to disable it

I'm using:

IntelliJ IDEA 2016.3 EAP
Build #IU-163.5219.11, built on September 27, 2016
Tadtada answered 30/9, 2016 at 8:55 Comment(1)
I was looking how to customize the appearance of the parameter name hints and found this post (bottom of page): intellij-support.jetbrains.com/hc/en-us/community/posts/…. Just leaving the link here for reference.Majestic
G
25

Yes - just press CTRL-P.

Galluses answered 23/11, 2009 at 13:41 Comment(0)
S
10

Display the parameter-helper automatically, by adjusting the "Autopopup"-timer in IntelliJ / PhpStorm settings.

Navigate to:

File -> Settings -> Editor -> General -> Code Completion -> Autopopup in (ms)

Set it to whatever you like. Etc. 5 ms.

Autopopup parameter info in IntelliJ

Sitsang answered 27/7, 2016 at 23:6 Comment(0)
S
0

Ctrl+P if the keybinding is set to "default".

Scoria answered 29/10, 2015 at 19:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.