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?

newcron
  • 1,199
  • 2
  • 8
  • 3

5 Answers5

137

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

Axifive
  • 1,159
  • 2
  • 19
  • 31
Yuval F
  • 20,565
  • 5
  • 44
  • 69
  • 16
    The action name is `Parameter info (within method call arguments)` (this is useful for searching it in Preferences > keymap). – juhoautio Feb 18 '14 at 10:52
  • 1
    @Arvidaa You can search in keymap by keystroke as well (magnifying glass with 3 blocks icon). – mvd Apr 02 '15 at 18:04
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
Community
  • 1
  • 1
Lukas M.
  • 2,859
  • 23
  • 30
  • I was looking how to customize the appearance of the parameter name hints and found this post (bottom of page): https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000004084-Type-hint-colors-customization. Just leaving the link here for reference. – Robin Trietsch Sep 15 '17 at 06:23
25

Yes - just press CTRL-P.

Joe
  • 913
  • 5
  • 12
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

Unicco
  • 2,466
  • 1
  • 26
  • 30
0

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

Suresh
  • 11
  • 1