ricardozea
11/27/2012 - 3:37 PM

Sublime Text 2: Snippet Installation and How to use

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