The objects in the above images are simple strings, yet I don't get any help from the Intellisense.
/// <reference path="/scripts/jquery-1.7.1-vsdoc.js" />
With the new Visual Studio 2012 this was not working anymore, I looked around and found the solution to put the reference in /scripts/_references.js I did so, not working.
What I was doing wrong was that I was referencing the vsdoc.js file, or at the moment of writing, nuget downloaded jquery 1.9.1 package, reference to jquery-1.9.1.intellisense.js which is WRONG.
The correct reference (if using the /scripts/_references.js file) is:
/// <reference path="/scripts/jquery-1.9.1.js" />
(NOT the .intellisense.js or the -vsdoc.js file).
Hope this helps.
Many things can cause problems like this, but I usually follow these steps to troubleshoot it.
I usually resolve most of the VS problems at step 3 or 4, and sometimes 5.
If you've installed VS on anything other than the C Drive this will happen.
Add references to the same .js files that exist in the list but pointing to the new path where you have VS installed
There are 5 of them
After this go to Edit> Intellisense > Refresh external references
In visual studio 2012,
Using this solution https://github.com/jmbledsoe/angularjs-visualstudio-intellisense.
Make sure put ng, ngCookies modules into required fields. For example: var module = angular.module("demo", ['ng','ngCookies']);
Triple-slash references look like this and can be added to the top of any .js file or in /scripts/_references.js file
/// <reference path="../app/respond.js" />
©2020 All rights reserved.