Viewing Method Parameter Information
Parameter hints show the names of parameters in calls of methods and functions.
By default, parameter hints are shown right in the editor next to a parameter in a function call making your code easier to read.
You can turn off parameter hints in the editor and view them in a popup.
Finally, you can configure WebStorm to show a tooltip with parameter hints for the method selected from the suggestion list for completion.
View 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.
-
Select Parameter hints from the list, make sure the Show parameter hints checkbox is selected, and then specify the context where you want parameter hints shown.
-
For some methods and functions, WebStorm does not show parameter hints in any context. Click Black list... to view these methods and functions, possibly enable parameter hints for them, or add new items to the list.
-
To turn off parameter hints in the editor, clear the Show parameter name hints checkbox.
If you don't want to see parameter hints for specific methods, you can configure the list with exceptions. By default, the exception list contains a number of pre-defined methods. You can remove a method from the list to see the hints for it, or add new methods to hide their hints in the editor.
Configure the parameter hints exception list
View parameter hints in a popup
-
Place the caret anywhere within the call of a method or function and press Ctrl+P or choose
from the main menu.
Configure parameter hints in popups
To have a complete method or function signature shown instead of a list of required types, select the Show full method signatures checkbox in the Parameter Info area.
-
To have the list of parameter types for the called method or function shown automatically after a certain delay, select the Show the parameter info popup (in ms) checkbox and specify the time period in milliseconds.