visual-studio-codeidejetbrains-idebrackets

How to add Auto Brackets in Visual studio Code like in JetBrains IDE?


Using PyCharm, I would just type print and it would automatically add brackets once I pressed Enter. Is there an extension to this in VS Code?

So I would just have to type the name of, for example, a function I defined and while calling it, I would just type functionName and press Enter (return) and it would display: functionName()


Solution

  • For Python, with the Python extension from MS,

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

    For javascript or typescript,

    try settings -> javascript/typescript -> Suggest: Complete Function Calls

    enter image description here