javascript - How to get Visual Studio Code to recognize Java Script functions? -


in netbeans added comment global, e.g.

/* global mylibrary */ 

in order recognize functions.

however, seems not work in vs code. example, if have function named myfunction in mylibrary module, when click on "go definition", tells me there "no definition found myfunction".

so how vs code recognize function?

i believe vscode not provide feature default. have define configuration if project has mixed content in it. use vscode angular 2 (using ng-cli) has setup generated me (i can goto definition if valid).

have @ these 2 links, hope helps you: https://code.visualstudio.com/docs/languages/javascript#_automatic-type-acquisition https://code.visualstudio.com/docs/languages/jsconfig#_what-is-jsconfigjson


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -