JQuery intellisense in Visual Studio Code

后端 未结 7 758
粉色の甜心
粉色の甜心 2020-12-13 11:26

I decided to jump in Visual Studio Code to create an app.
Now I can\'t seem to get intellisense working for both JQuery and JQuery Mobile.

My VSC version is 0.10

相关标签:
7条回答
  • 2020-12-13 12:07

    under typings/ directory create a file called "tsd.d.ts" with the following content:

    /// <reference path="js/jquery.d.ts"/>
    /// <reference path="js/jquerymobile.d.ts"/>
    

    jsconfig.json need not contain the files attribute:

    {
        "compilerOptions": {
            "target": "ES5",
        }
    }
    
    0 讨论(0)
提交回复
热议问题