WebStorm 2019.1 Help

Viewing Method Parameter Information

Parameter hints show the names of parameters in methods and functions. In TypeScript and JavaScript, parameter hints are by default shown right in the editor making your code easier to read.

ws_typescript_parameter_hints.png
You can turn off parameter hints in the editor and view them in a popup.
ws_view_parameter_info.png
Finally, you can configure WebStorm to show a tooltip with parameter hints for the method selected from the suggestion list for completion.

To configure parameter hints in the editor

By default, parameter hints are shown only for values that are literals or function expressions but not for named objects.

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), go to Editor | General | Appearance. The Appearance page opens.

  2. Click Configure next to the Show parameter name hint checkbox (the checkbox is selected by default).

  3. In the Configure Parameter Name Hints dialog that opens, select the Show name for all arguments checkbox in the Options area.

To turn off parameter hints in the editor

  • In the Settings/Preferences dialog (Ctrl+Alt+S) box (Ctrl+Alt+S), click General under Editor, then click Appearance. On the Appearance page that opens, clear the Show parameter name hints checkbox.

To view the parameter hints for a method in a popup

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

To configure the appearance and behavior of parameter hints in popups

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), click General under Editor, and then click Code Completion. The Code Completion page opens.

  2. To have a complete method or function signature shown rather than a list of required types, select the Show full signatures checkbox in the Parameter info area.

  3. 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) checkbox and specify the time period in milliseconds.

To show parameter hints after code completion

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), click General under Editor, and then click Code Completion. The Code Completion page opens.

  2. In the Parameter Info area, select the Show parameter name hints on completion checkbox.

Last modified: 16 May 2019

See Also