Using Visual Studio Intellisense to Create jQuery Selector Strings

This is a minor issue, but I am in:

When I use jQuery in Visual Studio 2010, I often type in text:

$(#S 

Using Intellisense to search for the identifier of an SomeID object:

 $(#SomeID).click( function() { etc.. }) 

then go back and add the quotes:

 $('#SomeID').click( function() { etc.. }) 

It seems to me that if I add a quote first, Visual Studio will go into string mode and I will lose Intellisense to search for the identifier of an object or class.

Am I doing it wrong?

+7
jquery visual-studio-2010 intellisense
source share
1 answer

Unfortunately, Intellisense for jquery on VS2010 is far from perfect. It has various problems, such as the one you mentioned above, and it knows N to cause performance problems in VS itself, because I type unbearably slow from time to time. You can always create some snippets to speed things up, but unfortunately this is not an intellisense related issue. We hope that they will release a fix for this in their first service pack.

+4
source share

All Articles