Intellisense doesn’t work for JavaScript in Visual Studio 2012

Kudos to CraigTP

Summary:

  1. navigate to the [Tools] > [Options] > Text Editor > JavaScript > IntelliSense > References options

  2. select Implicit (Web)

    you can find “~/Scripts/_references.js”
    (if you want to put it in different place, change it here)

  3. go to ~/Scripts and add new item “_references.js”

  4. add /// <reference path="path\jquery-1.7.1.js" /> in “_references.js”

    or /// <reference path="~\root\path\jquery-1.7.1.js" />

Happy coding 🙂

Edit note:

Remember to put jquery-1.7.1-vsdoc.js in the same folder with jquery-1.7.1.js

After making above mentioned changes, if it is still not working try restarting visual studio.

Leave a Comment

tech