{"id":4674,"date":"2008-02-08T16:20:00","date_gmt":"2008-02-08T16:20:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2008\/02\/08\/jscript-intellisense-working-with-jquery\/"},"modified":"2008-02-08T16:20:00","modified_gmt":"2008-02-08T16:20:00","slug":"jscript-intellisense-working-with-jquery","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/jscript-intellisense-working-with-jquery\/","title":{"rendered":"JScript IntelliSense: Working with jQuery"},"content":{"rendered":"<p><P>We have good news for <A class=\"\" href=\"http:\/\/jquery.com\/\">jQuery<\/A> fans.&nbsp; The <A class=\"\" href=\"http:\/\/blogs.msdn.com\/webdevtools\/archive\/2008\/02\/09\/downloadable-hotfix-performance-and-editor-fixes-for-microsoft-visual-studio-2008-and-visual-web-developer-express-2008.aspx\">hotfix<\/A> we released today fixes a bug in IntelliSense where it would fail with jQuery.&nbsp; Any page with jQuery should just work now.&nbsp; While experimenting with this new-found functionality today, I found annotating the library with a few XML Doc Comments really made a big difference.&nbsp; The key is to add a return type of &#8220;jQuery&#8221;&nbsp;like this: <\/P>\n<P><IMG title=\"doc comments\" border=\"1\" alt=\"doc comments\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/jquery0.png\" width=\"599\" height=\"144\"><\/P>\n<P>Here&#8217;s some jQuery chaining&nbsp;with IntelliSense:<\/P>\n<P><IMG title=\"completion list\" border=\"1\" alt=\"completion list\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/jquery1.png\" width=\"577\" height=\"182\"><\/P>\n<P><IMG title=\"tooltip\" border=\"1\" alt=\"tooltip\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/jquery2.png\" width=\"890\" height=\"129\"><\/P>\n<P>There were only a few functions that (due to the way they were&nbsp;declared) were not able to be annotated.&nbsp; Special thanks to <A class=\"\" title=\"Brennan's blog\" href=\"http:\/\/brennan.offwhite.net\/blog\/2008\/02\/01\/intellisense-for-jquery-in-visual-studio-2008\/\">Brennan<\/A> where I borrowed the comments from.&nbsp; If anyone will be making a fully annotated version of jQuery, I&#8217;d be happy to post a link to it from here.<\/P>\n<P><STRONG>Jeff King<BR><\/STRONG>Program Manager<BR>Visual Studio Web Tools<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have good news for jQuery fans.&nbsp; The hotfix we released today fixes a bug in IntelliSense where it would fail with jQuery.&nbsp; Any page with jQuery should just work now.&nbsp; While experimenting with this new-found functionality today, I found annotating the library with a few XML Doc Comments really made a big difference.&nbsp; The [&hellip;]<\/p>\n","protected":false},"author":404,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[31,7276,7277,7274,147],"class_list":["post-4674","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-asp-net","tag-intellisense","tag-jeff-king","tag-jscript","tag-visual-studio"],"acf":[],"blog_post_summary":"<p>We have good news for jQuery fans.&nbsp; The hotfix we released today fixes a bug in IntelliSense where it would fail with jQuery.&nbsp; Any page with jQuery should just work now.&nbsp; While experimenting with this new-found functionality today, I found annotating the library with a few XML Doc Comments really made a big difference.&nbsp; The [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/4674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/404"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=4674"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/4674\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=4674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=4674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=4674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}