r/javascript • • Dec 09 '18

LPT: configure auto parentheses for methods in VSCode

https://gfycat.com/TameSphericalAnnelid
100 Upvotes

6 comments sorted by

12

u/[deleted] Dec 09 '18 edited Dec 09 '18

Coming from Xcode, it felt foreign for methods to not autocomplete with open parentheses with parameter options in place (meaning you can simply start tying to input parameters.)

Fortunately you can configure VSCode's settings to do this!

"typescript.suggest.completeFunctionCalls": true,
"javascript.suggest.completeFunctionCalls": true

(In the gif, I'm pressing 'a' to bring up autocomplete, Enter to autocomplete, Tab to input x, Tab to input y)

3

u/bobandalice Dec 10 '18

Nice! Seems like it should be the default.

2

u/[deleted] Dec 10 '18

Which color scheme?

3

u/harlanpepper Dec 10 '18

This is that pure juice. Thank you.

-10

u/vadimynkv Dec 10 '18

Have you ever heard of Web(PHP)Storm?