Missing JavaScript Intellisense Items in VS IDE

| August 30, 2010 | 0 Comments

As a developer you might have noticed some of the javascript intellisense items missing while developing website with Visual Studio IDE’s.  I checked in all and found missing javaScript intellisense items in VS IDE such as VS 2005, VS 2008, VS 2010. Why is it so? What’s the reason behind. Read out details here.

I searched for it lot on internet but with no right solution. Finally with the help of ScottGu’s Blog I was able to got an idea for its resolution. I gave it try in all VS 2005, VS 2008 & VS 2010. And to my surprise the solution works nicely but when one or other option selected , the other methods or properties vanish out from Intellisense. I  was thinking why Microsoft has done this type of settings for.

Follow the steps below , give test to your codes in Editor and you will found the reason behind :-

  1. Open your .aspx page. Go to Tools –> Options –> TextEditor –> HTML –> Validation.
  2. Select one of the options from Target dropdownbox –> OK. (See snapshot below).
  3. And test your code. You would see the changes.
Same settings apply in all VS 2005, VS 2008 & VS 2010

Same settings apply in all VS 2005, VS 2008 & VS 2010

Note for VS 2010:

The same above settings can also be done in VS 2010 from Target Schema for Validation window. (See snapshot below).

VS 2010 Target Schema Validation

VS 2010 Target Schema Validation

And due to these Schema validation settings we are not able to see some of the properties of DOCUMENT in Properties window. In the screenshot below , for example, DefaultClientScript property is missing because of validation set to XHTML 1.0 Transitional. But if we set the Target Schema validation to Internet Explorer 6.0 in VS 2005, we would notice the same property is shown in Properties window.

DefaultClientScript property missing

DefaultClientScript property missing

Let me know if you have any other issues related with Visual Studio IDE.


Category: .NET, Error and Solution, Tips

Leave a Reply

%d bloggers like this: