Skip to content

madskristensen/Visual-Studio-jQuery-Code-Snippets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 

Repository files navigation

Visual Studio jQuery Code Snippets

I have updated the popular jQuery code snippets for use in Visual Studio 2012. See a demo video on YouTube here: http://www.youtube.com/watch?v=Escy0hbEkI8&hd=1

Most of these snippets were originally developed by John Sheehan (http://jquerysnippets.codeplex.com/) for Visual Studio 2010.

Download

Download v1.2 (.zip)

Installation

  1. Download the jQuery Snippets folder and all of its contents from this respository here: https://github.com/xxkylexx/Visual-Studio-jQuery-Code-Snippets/zipball/master
  2. Extract the zip and drop the jQuery Snippets folder into the Documents > Visual Studio 2012 > Code Snippets folder on your computer.
  3. In Visual Studio, navigate to Tools > Code Snippet Manager.
  4. Select language HTML from the language dropdown menu.
  5. Select the Add button at the bottom.
  6. Locate the "Documents/Visual Studio 2012/Code Snippets/jQuery Snippets/jQuery HTML" folder and click Select Folder.
  7. You should now see jQuery HTML in the listing of HTML snippets under the Code Snippet Manager.
  8. Change the language dropdown at the top of the Code Snippet Manager to JavaScript.
  9. Repeat steps 5-7 for the "Documents/Visual Studio 2012/Code Snippets/jQuery Snippets/jQuery JavaScript" folder.
  10. Click OK to exit the Code Snippet Manager.
  11. Restart Visual Studio.
  12. Start using the code snippets.

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: https://github.com/xxkylexx/Visual-Studio-jQuery-Code-Snippets/wiki/Snippet-Listing

Changelog

v1.2

  • All snippets now have CamelCase shortcut titles for easier reading.
  • Added jqFind, jqScriptValidateUnobtrusiveCdnMs snippets.
  • Changed jqDr => jqDocReady, jqDrs => jqDocReadyShort, jqheight => jqHeightSet.
  • Added version declarations to appropriate jqScript*Cdn* snippets.

Contributing

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

TODO

  • Create an easy installer.
  • Add missing jQuery snippets (most of these were all created based on an old jQuery build back in the day).

About

130+ jQuery code snippets for Visual Studio 2012.

Resources

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published