Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode: how to scroll through IntelliSense overload signature suggestions

VSCode: how to scroll through IntelliSense overload signatures in TypeScript and in Javascript ?

Sometimes the IntelliSense hints e.g. (+1 overload) in a tooltip as you write "someObj.someMethod(" and shows one (first) overload, but how to see the other overloads ?

enter image description here

like image 848
zaggi Avatar asked Oct 20 '18 00:10

zaggi


1 Answers

Your screenshot shows the hover tooltip for a method call, which only shows the overload that is actually being used. The only way I know of to see all overloads is in "parameter hints". The parameter hints appear automatically when you type the opening parenthesis of the method call, or you can put the cursor between the parentheses and invoke the "Trigger Parameter Hints" command, normally bound to Ctrl+Shift+Space. The parameter hints pop-up has two small arrow buttons you can click to navigate through the overloads:

screenshot showing method tooltip and overload navigation buttons

like image 134
Matt McCutchen Avatar answered Oct 12 '22 05:10

Matt McCutchen