Updating intellisense slow
Last month I blogged about how Microsoft is extending support for j Query.Over the last few weeks we've been working with the j Query team to add great j Query intellisense support within Visual Studio 2008 and Visual Web Developer 2008 Express (which is free). To enable intellisense completion for j Query within VS you'll want to follow three steps: VS 2008 SP1 adds richer Java Script intellisense support to Visual Studio, and adds code completion support for a broad range of Java Script libraries.
So, this post is about our beloved IDE instead of actual code. Note that you can now kiss your Visual Studio 2010 settings and preferences goodbye (your projects will be safe and sound). DELETE (or rename) all other folders that are not the “11.0” folder, assuming you used to have Visual Studio 2008 or whatever.So the rule is: If you see some weird behavior in Visual Studio, try to delete the SUO file first, before you try anything else.Update: I was just told that unloading and reloading the project file might help too.These annotated "-vsdoc.js" files can include XML comments that provide help documentation for Java Script methods, as well as additional code intellisense hints for dynamic Java Script signatures that cannot automatically be inferred. You can download both j Query and the j Query-vsdoc file from the official download page on the j site: Save the file next to your file in your project (and make sure its naming prefix matches the jquery file name): You can then reference the standard jquery file with an html comment at the top of a standalone file.When you do this VS will now look for a file in the same directory as the script file you are referencing, and if found will use it for help and intellisense.You don’t have to uninstall either of them, but if you open a solution in them it seems you’ll re-break Visual Studio 2012. Maybe a hotfix will come out eventually to fix this issue. If your Intellisense is anything but intelligent, and has stopped working, do the following: 1.
Open the start menu and type “%App Data%” and press enter to get to your Application Data Folder. Either you were automatically placed in the “Roaming” folder or you weren’t.
Now I could hit CTRL-J (list members) and it would pop up the list which showed me that it worked and was not dead per se, but I still did not have it automatically popup after typing a period.
I was also running Visual Studio 2012 on the same box and it did not have the same problem; intellisense popped the list up on the period. Here is what made it auto pop for me: That brought back the auto popup for me in VS2013 and should for you as well.
Rick Strahl also has a really nice Introduction to j Query article that talks about using j Query with ASP. Karl Seguin has two nice j Query primer posts here and here that provide shorter overviews of some of the basics of how to use j Query.
I also highly recommend the j Query in Action book.
The annotated For example, we could use j Query to make a JSON based get request, and get intellisense for the method (hanging off of $.): As well as help/intellisense for the $JSON() method's parameters: The intellisense will continue to work if you nest a callback function within the method call.