So I've been looking at jQuery and thought it would be nice to have the vsdoc's for the project I'm working on.
The problem is all of the methods to enable Intellisense for the project are not suitable.
I need to be able to enable IntelliSense without referencing the vsdoc in each file and we also currently use the jQuery CDN so need an option without modifying any of the code itself, is there any options or anything that allow me to add external jsdoc's?
So to clarify, I'm looking for a method of enabling jQuery IntelliSense without modifying my VS2010 project, hopefully through VS2010 options or something.
If you put
jquery-vsdoc.js
besides yourjquery.js
, just the reference tojquery.js
is enough to have IntelliSense running. And it is probably valid not only for jquery but for other files with -vsdoc.js (maybe .debug.js too). VS2008 SP1 Hotfix to Support "-vsdoc.js" IntelliSense Doc Files. The article is about VS2008 and I write about VS2010 but I suppose statements are valid (I have tried onlyjquery-vsdoc.js
). This technique works in .aspx but not in .html.You can also use a master page see JScript IntelliSense FAQ.