Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple snippets in one file sublime text 2

Is it possible to have multiple custom snippets in one file using sublime text 2? Currently you have to create individual files for each snippet.

like image 548
user2202463 Avatar asked Feb 15 '14 20:02

user2202463


People also ask

How do I get snippets in Sublime Text?

To create a new snippet in Sublime Text 3, go to: Tools -> Developer -> New Snippet...

Where are sublime text snippets stored?

Snippets can be stored under any package's folder, but to keep it simple while you're learning, you can save them to your Packages/User folder.

How do I edit a sublime snippet?

How to edit built-in snippets in Sublime Text [Quick Guide][Super Easy Method] Tools — >Command Palette — >Package Control: Install Package. Step 2: Search for the PackageResourceViewer in the Package Control and install it.

How do I create a custom snippet in Sublime Text 3?

Go to Developer Option: Go to the developer option and click on New Snippet. A file will be open with some pre-written code.


1 Answers

You can create a *.sublime-completions file. For information on how to do this, see here and here.

like image 191
skuroda Avatar answered Sep 27 '22 16:09

skuroda