Use suggested method parameters in Visual Studio Code

孤街浪徒 提交于 2019-12-01 00:50:40

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!