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
Post a Comment