Home Download Buy Blog Forum Support

How to add a new snippet to the snippets

How to add a new snippet to the snippets

Postby rdbzeteo on Sun Aug 28, 2011 9:46 am

Hello, I downloaded the Sublime Text 2. I'm a new user to it. I noticed under "tools" down at the bottom there is an option "add snippet" I was wondering how this works. I tried it and a new code tab opens up with code and a place to enter the content for the snippet but I don't know how to save the snippet.

Can I save a new snippet to the tools > snippets ?

Does this feature work? Does the "tools > add snippet" even work to allow you to make a new snippet and then retrieve it later?
rdbzeteo
 
Posts: 1
Joined: Sun Aug 28, 2011 9:41 am

Re: How to add a new snippet to the snippets

Postby guillermooo on Sun Aug 28, 2011 10:55 am

Hi,

There's more info here:

http://sublimetext.info/docs/en/extensi ... ppets.html

In short: Just edit the file that opens and save it somewhere (that makes sense) under "Packages" (Preferences > Browse Packages...). Usually you will want to save them to "Packages/User/<somedir>/<My New Snippet>.sublime-snippet".
guillermooo
 
Posts: 718
Joined: Thu Jul 23, 2009 9:06 am


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 7 guests