IntelliJ IDEA 2017.1 Help

Viewing Method Parameter Information

On this page:

Parameter hints for methods

Place the caret anywhere within the call of the desired method or function and choose View | Parameter Info on the main menu or press Ctrl+P.

viewParameterInfo.png
In the PHP conext, parameter information for methods defined through the @method phpDocumentor tag is also available:
php_storm_view_parameter_info.png

Parameter hints for constructors

In the PHP context, IntelliJ IDEA prompts you about the parameter type when a constructor is called. Place the caret anywhere within the call of the desired constructor and choose View | Parameter Info on the main menu or press Ctrl+P. The parameter type is shown in a tooltip:

ps_parameter_hint_for_constructor.png
When you type the parameter value, it is prepended with the parameter from the constructor:
ps_parameter_hint_for_constructor_result.png

Configuring the behavior of parameter hints

Open the Code Completion page (Settings | Editor | General | Code Completion for Windows and Linux or IntelliJ IDEA | Preferences | Editor | General | Code Completion for macOS) and configure the following options in the Parameter info section:

  1. To have a complete method or function signature shown rather than a list of required types, select the Show full signatures check box.
    Make sure to include the required third-party libraries in the project source path. Otherwise, names of the parameters will not be displayed.
  2. To have the list of parameter types for the called method or function shown automatically after a certain delay, select the Auto pop-up (in ms) check box and specify the time period in milliseconds.

See Also

Reference:

Concepts:

Last modified: 5 April 2017