Reputation: 8988
I want to show parameter hints when I position cursor within the parentheses of the calling method.
Note: 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.
Upvotes: 284
Views: 172545
Reputation: 51
Upvotes: 3
Reputation: 7343
cntrl+shift+space
View -> Command Palette->parameter hints
hover mouse on the function.then it will show the hint.
If you feel gif is too small click on the gif it will expand.
Upvotes: 20
Reputation: 61
If like me you always forget, open the palette, the shortcut will be displayed:
Upvotes: 0
Reputation: 593
Code -> Preferences -> Keyboard Shortcuts
Search for "Trigger parameter hints"
Here you can either inspect the defined shortcut
Or you can change keybinding by pressing to the left of "Trigger parameter hints" command name.
Upvotes: 13
Reputation: 8988
For Windows and Linux:
Ctrl + Shift + Space
For MacOS:
Shift ⇧ + Cmd ⌘ + Space
Upvotes: 452
Reputation: 479
There's also a new feature called inlay hints which you can enable in your settings.json
like this:
"javascript.inlayHints.parameterNames.enabled": "all",
Upvotes: 47
Reputation: 20590
For Java extension, ctrl+shift+space works only after setting Java > Signature Help: Enabled
in your settings.json
:
Upvotes: 13
Reputation: 185
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
Upvotes: 11