如何像在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