Bryan
Bryan

Reputation: 3492

Intellisense for external javascript files in VS2008

I'm trying to get Visual Studio 2008 SP1 to do intellisense for external javascript files, as described here by ScottGu, but it's not working.

I have an ASP.NET MVC project with several javascript files in the Scripts directory. All of the scripts are included on a master page. Intellisense is enabled, but it only gives me the basic javascript language stuff-- nothing defined in my scripts. I have tried adding /// <reference path="Global.js" /> comments to the top of the files, with no luck. It doesn't work in script blocks in the master page either. Is there something else I need to do to get this working?

Edit: I'm not using jquery. From Scott's article it didn't sound like I needed any -vsdoc.js files; is this incorrect? If so, where do these files come from for my own external scripts?

Upvotes: 0

Views: 861

Answers (2)

alexl
alexl

Reputation: 6851

Try to download the hotfix KB958502:

https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=14883&wa=wsignin1.0

Be sure to have the file -vsdoc.js in the same directory as you main js script. And the must have the same name. For exemple jquery.1.3.2.js and jquery.1.3.2-vsdoc.js

And i had to reload all the visual studio when i've installed the hotfix.

Hope this helps.

Upvotes: 1

Beep beep
Beep beep

Reputation: 19151

Did you leave all the debug scripts in the Scripts folder? e.g. jquery-1.2.6-vsdoc.js?

Upvotes: 0

Related Questions