Skip to content
This repository

130+ jQuery code snippets for Visual Studio 2012 & 2013.

branch: master

Visual Studio jQuery Code Snippets

I have updated the popular jQuery code snippets for use in Visual Studio 2012 and 2013. See a demo video on YouTube here:

Most of these snippets were originally developed by John Sheehan ( for Visual Studio 2010. Credit given where due.


  1. Open Visual Studio 2012/2013.
  2. Navigate to Tools > Extensions and Updates.
  3. Search Online for "jquery code snippets".
  4. Select the "jQuery Code Snippets" extension and click Install.
  5. Restart Visual Studio.
  6. Start using the code snippets.

You can also download and install the extension from the Visual Studio Gallery.

Snippet Listing

There are over 130 code snippets for jQuery included. You can view a listing of all of these snippets on the project wiki here:



  • Updated all snippets to have helpful descriptions and tooltips from latest jQuery docs
  • More uniform formatting and spacing throughout snippets
  • Added jqMap and jqEach (thanks @grahampcharles), jqDataSetObj, jqOn, jqSlideToggle, jqSlideToggleFull
  • Renamed jqClassToggleFn -> jqClassToggleSwitch, jqToggleVis* -> jqToggle*, jqOffset -> jqOffsetGet
  • Removed jqLive, jqToggleMore, jqUnbindFn
  • Various other code cleanup and bug fixes with snippets

Previous Versions


Please feel free to submit pull requests to the dev branch.


  • Add missing jQuery snippets (most of these were all created based on an old jQuery build back in the day).
Something went wrong with that request. Please try again.