Use suggested method parameters in Visual Studio C

2019-05-01 16:56发布

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...

enter image description here

1条回答
聊天终结者
2楼-- · 2019-05-01 17:11

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,
查看更多
登录 后发表回答