By default this is disabled, so we'll have to enable it first in our settings. CTRL + SHIFT + P -> Settings (UI) and search for inlay parameter
.
There's settings for javascript and for typescript. To enable both choose the all
option from the dropdown.
json settings:
"javascript.inlayHints.parameterNames.enabled": "all",
and"typescript.inlayHints.parameterNames.enabled": "all",
After activating, you'll get parameter hints displayed for available functions.