本文介绍了在Visual Studio Code中使用建议的方法参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Visual Studio Code会在您键入正确的方法时为正确的方法建议正确的参数.有没有办法接管它们/直接将它们插入?手工编写带有类型的参数感觉不对...
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...
推荐答案
javascript
& typescript
个文件:
Something like that exists for javascript
& typescript
files:
"typescript.useCodeSnippetsOnMethodSuggest": true,
// from vscode 1.28
"typescript.suggest.completeFunctionCalls": true,
"javascript.suggest.completeFunctionCalls": true,
这篇关于在Visual Studio Code中使用建议的方法参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!