Visual Studio Code does not mark functions

Asked

Viewed 380 times

0

Hello, someone could help me, I’m learning JS using Visual Studio, but my VS is not automatically parenting after functions...

inserir a descrição da imagem aqui

For example, in my VS appears the options with the names of the functions q I can choose normally (as in the image above), but if I choose an option, the Random, for example, it just writes Random in the code, and not Random(), with the relatives indicating q is a function...

It seems a silly detail, but p/ who is learning generates mta confusion, since q there are some methods/functions q do not need to put even the () as the lenght for ex.... so I never know qd use the () or not... :(

I know the VS automatically puts pq already watched videos using the VS in q the () is automatically put qd click on the function name in the options, but in my VS this does not happen... anyone knows how I fix it?

Thank you

  • Every method needs (), Length is just an attribute, not a function

  • vc is in a file. JS?

  • This is the normal behavior of vs code.

  • Do you already have Emmet? link: https://code.visualstudio.com/docs/editor/emmet

1 answer

2


Just mark the property javascript.suggest.completeFunctionCalls in their Ttings.

(Click Run to see the example gif)

<div style='position:relative; padding-bottom:calc(40.34% + 44px)'><iframe src='https://gfycat.com/ifr/CleverActualHornbill' frameborder='0' scrolling='no' width='100%' height='100%' style='position:absolute;top:0;left:0;' allowfullscreen></iframe></div>

Translated answer from https://stackoverflow.com/a/60126232/12913985

Browser other questions tagged

You are not signed in. Login or sign up in order to post.