After upgrading to Sublime Text 4, the snippets that were previously working have stopped. Has anyone experienced the same and/or has a fix to get snippets working correctly again?
Here is an example snippet:
<snippet>
<content><![CDATA[
foreach ( ${1:$key} as ${2:$value} ) : ?>
${3}
<?php endforeach;
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>fore</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
</snippet>
This was outputting a “foreach” block in ST3 and I was able to tab through and replace the values:
foreach ( $key as $value ) : ?>
...
<?php endforeach;
but now the same tabTrigger of “fore” outputs only “foreach” and that’s it.
foreach
If I trigger the snippet using command-shift-p and searching for it, the snippet outputs more of the snippet, but the variables are still missing:
foreach ( as ) : ?>
<?php endforeach;
Any help or guidance would be appreciated.
Thanks