Sublime Forum

How to add a new snippet to the snippets

#1

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?

0 Likes

#2

Hi,

There’s more info here:

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//.sublime-snippet”.

0 Likes