问题
i use win7 + VS2008 PRO to edit my blog (php) and i can't seem to get this work.
i tried installing the patch (inteli hot fix) but it says no need to install (i have pro sp1) this is the folder structure:
js common.js jquery-1.3.2-vsdoc.js jquery-1.3.2.js
i working on a blog (not asp or html) so i created a common.js file that i want to work on. i tried to referencing (no spaces): /// reference path="jquery-1.3.2-vsdoc.js" (openning and closing bracket were removed by stackoverflow code manager)
but i get this error:
Error updating JScript IntelliSense: Client-side script IntelliSense information was not generated due to an error in an external script reference. C:\xampp\htdocs\wordpress\wp-content\themes\mytheme\includes\js\common.js
i have the official jquery-1.3.2.js jquery-1.3.2.min.js and jquery-1.3.2-vsdoc2.js and yes i removed the 2 at the end of vsdoc file name and tried both mini and normal js files and both failed to load.
i just want to see some intellisense within my js file - a blog doesn't have a masterpage or anthing. why can't i make this work.
also updated windows services including vs2008
also reseted all setting in vs2008
also disabled all plugins in vs2008
回答1:
First, check the correct patch (redownload/execute to be 100% sure).
I have the pro version with SP1 too, and it worked.
Second, double check the closing bracket with "/", and be sure to put it inside the .js in which you are interested to have the documentation in (in your case, if i am not mistaken, it is common.js).
Very important: if the doc file is in another directory, you have to point it correctly, relatively to where the common.js file is.
/// <reference path="jquery-1.3.2-vsdoc.js" />
来源:https://stackoverflow.com/questions/1505705/jquery-intellisense-vs2008-pro-fails-to-load