0

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()

LazyOne
  • 158,824
  • 45
  • 388
  • 391
Virej Dasani
  • 185
  • 3
  • 15

3 Answers3

7

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

Simon Z.
  • 598
  • 5
  • 11
6

Try Pasting this in settings.json:

"python.analysis.completeFunctionParens": true
Otter
  • 1,086
  • 7
  • 18
2

Basically, this feature is not available in VS code by default. You will have to look for an extension. I'm sorry to say but after extensive research, I was not able to find any suitable extension

SuperBot
  • 62
  • 6