Accidental Technologist

Musings about Entrepreneurship, Technology and Software Development

  • Home
  • About
  • Still River Software
  • Privacy Policy

Powered by Genesis

You are here: Home / Visual Studio / Getting jQuery Intellisense Functioning in Visual Studio 2008

Getting jQuery Intellisense Functioning in Visual Studio 2008

October 28, 2008 by Rob Bazinet

Tweet

It was announced today at the Microsoft Professional Developers Conference that Visual Studio 2008 supports Intellisense for jQuery with an additional file available from jQuery.  The file is available from Google Code. 

There are no instructions included with the download but I took the time to get jQuery Intellisense to work in one of my ASP.NET MVC projects.   In order to get this to work I did the following:

1. Downloaded the jquery-1.2.6-vsdoc.js to the Scripts folder of my project along side my jquery-1.2.6.js file.

2. In my project I referenced the jquery-1.2.6-vsdoc.js file in my Master Page so I could reference it anywhere, like so:

jQueryUse

3. Once this is in place a simple test of function was created and Intellisense was tested:

jQueryIntellisense1

The reference to jQuery can be clearly seen here.

jQueryIntellisense2

The list of methods available as part of the jQuery library can also be seen.

This was pretty easy, the key part is making sure you have the proper path set for Visual Studio to find the jQuery JavaScript files.   I used the path as ?~/script/jquery-1.2.6-vsdoc.js? and placed it after the reference to the main jQuery JavaScript file, referenced the same way. 

I hope this helps someone else trying to get this going.

Technorati Tags: jQuery,ASP.NET,Visual Studio 2008,Microsoft

Share this:

  • LinkedIn
  • Twitter
  • Facebook
  • Email
  • More
  • Pinterest
  • Tumblr
  • Pocket
  • Reddit

Related

Filed Under: Visual Studio

Care about your privacy? I do and use Fathom Analytics on this site.

Fathom Analytics

Comments

  1. ASP.NET MVC Archived Blog Post says

    October 28, 2008 at 11:36 pm

    RE: Getting jQuery Intellisense Functioning in Visual Studio 2008

    Pingback from ASP.NET MVC Archived Blog Posts, Page 1

  2. ASP.NET MVC Archived Blog Posts, Page 1 says

    October 28, 2008 at 11:36 pm

    RE: Getting jQuery Intellisense Functioning in Visual Studio 2008

    Pingback from ASP.NET MVC Archived Blog Posts, Page 1

  3. alex grande says

    October 30, 2008 at 12:56 pm

    I’d use this but I have to place a JS file into my websites in order to see this? What if i forget to move it? I think I’ll wait until VS can embed it without a client side script. Good first steps!

  4. alex grande says

    October 30, 2008 at 12:56 pm

    I’d use this but I have to place a JS file into my websites in order to see this? What if i forget to move it? I think I’ll wait until VS can embed it without a client side script. Good first steps!

  5. Rob Bazinet says

    October 30, 2008 at 1:12 pm

    @alex You need to use the file on your local development system, the Intellisense is only for development purposes. Once you deploy you would remove the reference to the .js file and deploy.
    If you happened to forget then it is really only some extra JavaScript which only Visual Studio uses and wouldn’t really be a problem except for some extra client-side JS downloads.

  6. Rob Bazinet says

    October 30, 2008 at 1:12 pm

    @alex You need to use the file on your local development system, the Intellisense is only for development purposes. Once you deploy you would remove the reference to the .js file and deploy.

    If you happened to forget then it is really only some extra JavaScript which only Visual Studio uses and wouldn’t really be a problem except for some extra client-side JS downloads.

  7. Sean says

    November 7, 2008 at 5:25 pm

    If I have an existing .js file I created that my project references, how can I get intellisense while working in that .js file within Visual Studio 2008?

  8. Sean says

    November 7, 2008 at 5:25 pm

    If I have an existing .js file I created that my project references, how can I get intellisense while working in that .js file within Visual Studio 2008?

  9. Sam says

    December 23, 2008 at 12:16 am

    thank you!

  10. Sam says

    December 23, 2008 at 12:16 am

    thank you!

Recent Posts

  • How to Fix Rails Flash Rendering When Using Hotwire
  • Hotwire Fix for CORS Error when using Omniauth
  • Fix Installation of Ruby using rbenv on macOS Big Sur
  • RailsConf 2021 and the Future of Conferences
  • Fixing Out of Diskspace Errors on Amazon EC2

Categories

Services I Love

HatchBox - Easy Rails Deploys Fathom Analytics
Follow @rbazinet

Rob Bazinet
@rbazinet

  • Exactly this…. https://t.co/yWj7fZ01HR
    about 18 hours ago
  • https://t.co/EmagdpLoNv "Introducing GitHub Copilot X · GitHub"
    about 1 day ago
  • RIP Gordon Moore: https://t.co/c5J9LaHrj8
    about 1 day ago
  • Our daughter works as a teaching assistant at a local K-8 public school. It’s become apparent that students today r… https://t.co/p2t912GVyc
    about 2 days ago
  • Working to wrap up my current consulting gig by mid-April. I will be looking for the next thing soon. If anyone has… https://t.co/sg3cSV9yqM
    about 3 days ago
  • RSS - Posts
  • RSS - Comments
Find me on Mastodon