Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ricardozea/4154871 to your computer and use it in GitHub Desktop.
Save ricardozea/4154871 to your computer and use it in GitHub Desktop.
Sublime Text 2: Snippet Installation and How to use
**INSTALLATION**
In Sublime Text 2 go to:
1. Tools » New Snippet...
2. Delete everything in that file
3. Copy the "Advanced version" snippet and Paste it
4. Save the file
Repeat same steps for "Basic version" snippet.
**HOW TO USE**
Just open a new document and type "html5" and press TAB. You'll be able to see the Advanced version created.
For the Basic version, just type "html5b" and press TAB.
**NOTE:**
You can change the 'TAB trigger' to whatever you want to, it's actually quite easy.
1. Look for the "<tabTrigger>" tag in the snippets at the bottom of the code
2. For Advanced version I used "html5", and for Basic version I used "html5b"
3. Change these values to whatever you want and save the files
Here's a very short screencast I found that can be of great help for creating custom snippets: http://www.kingluddite.com/tools/using-snippets-with-sublime-text-2-st2
**INSTALLATION**
In Sublime Text 2 go to:
1. Tools » New Snippet...
2. Delete everything in that file
3. Copy the "Advanced version" snippet and Paste it
4. Save the file
Repeat same steps for "Basic version" snippet.
**HOW TO USE**
Just open a new document and type "html5" and press TAB. You'll be able to see the Advanced version created.
For the Basic version, just type "html5b" and press TAB.
**NOTE:**
You can change the 'TAB trigger' to whatever you want to, it's actually quite easy.
1. Look for the "<tabTrigger>" tag in the snippets at the bottom of the code
2. For Advanced version I used "html5", and for Basic version I used "html5b"
3. Change these values to whatever you want and save the files
Here's a very short screencast I found that can be of great help for creating custom snippets: http://www.kingluddite.com/tools/using-snippets-with-sublime-text-2-st2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment