How to trigger parameter hints in Visual Studio Code?

I want to show parameter hints when I position cursor within the parentheses of the calling method.

I know similar answers already exist for Visual Studio on Reddit, but I couldn't find a quick answer for this question on Stack Overflow. So I've decided to add it.


Solution 1:

For Windows and Linux:

Ctrl + Shift + Space

For MacOS:

+ + Space

Solution 2:

  1. Code -> Preferences -> Keyboard Shortcuts
  2. Search for "Trigger parameter hints"

2.a Here you can either inspect the defined shortcut

2.b Or you can change keybinding by pressing to the left of "Trigger parameter hints" command name.

Solution 3:

For Java extension, ctrl+shift+space works only after setting Java > Signature Help: Enabled in your settings.json:

enter image description here

enter image description here

Solution 4:

Update v1.6 - Aug 2021

There's also a new feature called inlay hints which you can enable in your settings.json like this:

"javascript.inlayHints.parameterNames.enabled": "all",

Solution 5:

You can use Ctrl+Space to show parameter hints before parentheses, and if you want to trigger parameter hints in parentheses to know about arguments you can use Ctrl+Shift+Space