Use suggested method parameters in Visual Studio C

2019-05-01 16:51发布

问题:

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,