如何像在JetBrains IDE中那样在Visual Studio Code中添加自动括号?

问题描述

使用PyCharm,我只需要输入print,然后按 Enter 它将自动添加括号。 VS Code中对此有扩展吗?

因此,我只需要键入例如定义的函数的名称,然后在调用它时输入functionName并按 Enter (返回)即可将显示:functionName()

解决方法

基本上,默认情况下,此功能在VS代码中不可用。您将需要寻找扩展。不好意思,但是经过大量研究,我找不到合适的扩展名

,

对于Python,带有MS扩展名的Python

尝试settings-> Python-> Auto complete: Add Brackets enter image description here

对于javascripttypescript

尝试settings-> javascript / typescript-> Suggest: Complete Function Calls

enter image description here

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...