Sublime Forum

[BUG] Not all snippets work

#1

Basically some snippets work and others dont. For example in PHP i can do ‘foreach’ and ‘echo’ and press tab and it works perfectly, but not for ‘class’ or ‘def’.

There is one caveat, and that is when i switch the language to C++ in the statusbar and try to do the ‘def’ snippet, it works (the proper C++ snippet is loaded). But it wont work when it is switched to PHP.

I searched around and found this happened to someone else when they were using the rails snippets.
Any ideas on how to fix this? or do we have to manually create new snippets for each one?
I am using version 1.3, unregistered.

PS - Oh subscribing to topics was turned off? :frowning:

0 Likes

#2

When using the PHP snippets, are you within <?php ... ?> tags? The ‘class’ and ‘def’ snippets work for me in that case.

0 Likes