Mahmoud ElMansy: knowledge meant to be free

Visual Studio 2012 JavaScript Snippet JQuery (ready function)

I will show today a simple snippet to make JQuery Document Ready function

<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <SnippetTypes>
        <SnippetType>Expansion</SnippetType>
      </SnippetTypes>
      <Title>SnippetFile1</Title>
      <Author>ELMansy</Author>
      <Description>
      </Description>
      <HelpUrl>
      </HelpUrl>
      <Shortcut>Jready
      </Shortcut>
    </Header>
    <Snippet>
     <!--<References>
       <Reference>
         <Assembly>System.Windows.Forms.dll</Assembly>
       </Reference>
     </References>-->
      <"Code" Language="java-script">
      <![CDATA[    $$(document).ready(function () {
                  // put all your jQuery goodness in here.
                   });]]></"Code">
    </Snippet>
  </CodeSnippet>
</CodeSnippets>

Put this code in a text file name it “Jquery_Decleration.snippet”
And put it under the path of you visual studio Snippets folder
“C:\Users\UserName\Documents\Visual Studio 2012\Code Snippets\JavaScript\My Code Snippets”

Note this snippet apply for VS2012
You May download from here