问题
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...
回答1:
Something like that exists for javascript
& typescript
files:
settings.json Ctrl+,
"typescript.useCodeSnippetsOnMethodSuggest": true,
// from vscode 1.28
"typescript.suggest.completeFunctionCalls": true,
"javascript.suggest.completeFunctionCalls": true,
来源:https://stackoverflow.com/questions/36391941/use-suggested-method-parameters-in-visual-studio-code