Sublime Forum

Why does this simple snippet not work?

#1

I have the snippet below save in ~/Library/Application Support/Sublime Text 3/Packages/User/My Snippets. After not being able to get it to work in a markdown file, I changed it to text.plain, then opened a .txt file. Sublime says “Plain Text” at the bottom right of the screen. Yet whey I type xxx then tab, nothing happens. I also tried making the trigger xxx/, but that did not work either.

HELLO SNIPPET xxx text.plain
0 Likes

#2

Noob mistake. I did not give the saved snippet file a .sublime-snippet extension. After I renamed the file:

/Library/Application Support/Sublime Text 3/Packages/User/MySnippets.sublime-snippet

It worked!

1 Like

#3

A bit of self-promotion again

A manager for your snippets

0 Likes

#4

That looks very interesting. I’ll have to check that out.

-Thanks

0 Likes

#5

If we’re doing promotions, I’d like to suggest https://packagecontrol.io/packages/SaneSnippets for easier-to-work-with snippets.

1 Like

#6

Thanks, I like sanity! Seriously, I’ll check it out.

0 Likes