NerdyHearn
Home
Blog

Contact
Mailing List

Software


Blog
Twitter

NerdyHearn - Blog


<< Back To All Blogs

Using JavaScript intellisense in Visual Studio 2008

Friday, October 3rd, 2008

I have recently been playing with using Visual Studio 2008 as an intellisense editor while working with Ext JS for RSSBus.

I couldn't find out why the javascript intellisense wasn't working (for the entire Ext library, except for those locally in the current whatever.js file). It turns out you need to add a Visual Studio Reference to the top of your file like so:

/// <reference path="../some/path/to/adapter/ext/ext-base.js">

Do that for each Ext JS (or any javascript file) that is external and you want included, and voila! I must say MS, you guys finally did it right with JavaScript after so many years of putting off intellisense. I am very impressed!

Much-happier-javascripting-Tom Out.

Tags

JavaScript

Related Blogs



Differences including javascript file in MSIE and Firefox
Javascript XMLHttp requests: Fixing the data necessary to complete this operation...
Using Ext JS in SharePoint... a tip

Comments

jQuery HowTo said on Monday, February 2nd, 2009 @ 6:06 AM

Hi Tom,
Thanks for your reply. I have found the jQuery intellisense for VS.
Thanks...

Tom said on Thursday, January 29th, 2009 @ 9:03 AM

Just do a Google search for jQuery intellisense in Visual Studio and you will come up with a bunch of results. Microsoft has an official intellisense file for jQuery which adds full support.

jQuery How to said on Thursday, January 29th, 2009 @ 8:56 AM

Any tips on howto do this in jQuery. I would love to post it on my jQuery tutorials blog.

Add A Comment

Name:


URL:


Email Address: (not public, used to send notifications on further comments)


Comments:



Enter the text above, except for the 1st and last character:


NerdyHearn - Latest tech news relating to C#, ASP.NET, SharePoint, PHP, general development, and more. SaveMySerials - Protect yourself from theft, fire, natural disasters and more by recording your serial numbers