Sublime Forum

Multiple snippets in a single file

#1

Hello, very new to Sublime Text 2 (on OS X), downloaded it yesterday, really like it so far, looks like my replacement for Textmate.

First question, is it possible to have multiple snippets in one file? I tried it but ST2 doesn’t seem to like it, it just reads the first one. If not possible, is this something that could be built? I just find it hard to manage (and a waste) to have one file per snippet.

thanks.

0 Likes

Allow multiple snippets in same sublime-snippet file
How can i edit New code segment
#2

Consider using .sublime-completions files:

sublimetext.com/docs/2/tab_completion.html
sublimetext.info/docs/en/extensi … tions.html

They work well as collections of short snippets. Longer ones will still require separate .sublime-snippet files for clarity.

EDIT: I meant .sublime-completions files. .sublime-commands files add items to the Command Palette.

0 Likes

#3

Have had this issue as well. Maybe this could be changed in a future version? I’m using ST3 and ST4.

0 Likes