Visual Studio Code suggests the right parameters for well defined methods as you type them. Is there a way to take them over / insert them straight away? Doesn't feel right to write the parameters with their types by hand...
Use suggested method parameters in Visual Studio Code
Asked Answered
I also not found this possibility, but yeah this is good idea to autocomplete from d.ts files. I suggest to add this feature request to github.com/Microsoft/vscode/issues –
Claudeclaudel
Something like that exists for javascript
& typescript
files:
settings.json Ctrl+,
"typescript.suggest.completeFunctionCalls": true,
"javascript.suggest.completeFunctionCalls": true,
Thanks a lot, that was exactly what I was looking for! –
Sparker
I added this, it adds paranthesis, but does not autocomplete variables –
Wilone
This is great and unknown to a lot of people, I wish VSCode could suggest this in the intellisense when writing functions. –
Phantasm
Now its finally working as expected, Visual Studio Code 1.63.0 implemented "Method Signature Completions": https://code.visualstudio.com/updates/v1_63#_method-signature-completions
© 2022 - 2024 — McMap. All rights reserved.