JQuery intellisense in Visual Studio Code

后端 未结 7 795
粉色の甜心
粉色の甜心 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 11:41

    Latest (as of April 2017) suggested approach to do this is to use automatic type acquisition by adding jsconfig.json file in the root of your project with the following contents:

    {
     "typeAcquisition": {
         "include": [
             "jquery"
         ]
       }
    }
    

    Then, in your editor you will see:

    For more information, check official documentation

提交回复
热议问题