Friday, May 8, 2009

No jQuery intellisense in Visual Studio Workaround

If you are using jQuery 1.3.2 in Visual Studio 2008 or Visual Web Developer 2008 (SP1), you may come across scenario where you wont get the jQuery intellisense support, even if you add jquery-1.3.2-vsdoc2.js file to the aspx page.

The workaround is simple. All you’ve to do, is to rename the jquery-1.3.2-vsdoc2.js to jquery-1.3.2-vsdoc.js.

It looks like:

   1: <script src="Scripts/jquery-1.3.2.js" type="text/javascript"></script>
   2: <script src="Scripts/jquery-1.3.2-vsdoc.js" type="text/javascript"></script>

Note: For making VS/VWD to support jQuery intellisense, you’ve to apply a patch from the VS Development team & can be downloaded from here.

2 comments:

Merlin Moose said...

Nice post.
I's scratching my head for a while.But, I still wonder, is that a bug that happened from the Google's Code Team to accidently rename the file as 'vsdocs2.js' instead of 'vsdocs.js'. I think so. Anyway thanks for helping.

Abhilash said...

Hi Merlin,
Thanks for the comment. You might be right. I'm also thinking in the same way. Might that be a mistake from Google Codes Team. But how? That I cant understand. Or else there might be something that may not be knowing.

 
Best viewed in Internet Explorer 8.