Search code examples
phpstorm

Is there a way to bring up the method signatures in Phpstorm's autocomplete?


As per most IDE's, PhpStorm will bring up a list of matching options when you type part of a function (assuming the IDE is configured properly etc).
PhpStorm, will also show the function signature, which is ideal, for giving hints when you have a function that accepts lots of parameters, e.g. database connection functions like mysqli_connect.
However, the moment you "select" the function for autocompletion, either by ctrl + spacebar or selecting from dropdown menu, the method signature and parameter hinting disapears.

Ive tried:

  • ctrl + space this brings up the autocomplete menu again, but you have to fiddle with the window to view the params, then it disappears again when you start typing, and if you need to reference again, you need to go through the window resizing process again.
  • ctrl + q quick documentation - this doesnt do anything

Is there a way to bring the method signature back up while typing out the parameters for the function?


Solution

  • You can do this in the default keybinding with:

    ctrl+p