开发者

Visual Studio 2005 + jQuery intellisense

开发者 https://www.devze.com 2022-12-25 11:14 出处:网络
I\'m trying to 开发者_如何转开发put my visual studio 2005 profissional with the jQuery doc I\'m importing the core and doc files, but I still don\'t get the result I hope for...

I'm trying to 开发者_如何转开发put my visual studio 2005 profissional with the jQuery doc

I'm importing the core and doc files, but I still don't get the result I hope for...

No intellisence at same...


The short answer: this doesn't work in Visual Studio 2005.

-vsdoc is only supported in Visual Studio 2008, there was a major overhaul to the javascript intellisense engine in 2008, and the vsdoc functionality relies on it.


I'm using 2008, but maybe try this method. It's what I do and it works.

Assuming, the script file you're working on is in the same directory as the jQuery vsdoc IntelliSense file, then put this at the top of said script file

/// <reference path="jquery-1.4.1-vsdoc.js" />

EDIT::

Alright, just a few things then.

  1. Make sure that you actually added the jquery to your project, not to the folders of your project. Same goes for the vsdoc.

  2. For the vsdoc, make sure it is the same name as the jQuery file + "-vsdoc". For instance, my two files are like this:

    jquery-1.4.1.js

    jquery-1.4.1-vsdoc.js

0

精彩评论

暂无评论...
验证码 换一张
取 消