I’m trying to edit the foreach
snippet of PHP with this method.
The original one is:
<snippet>
<content><![CDATA[<?${TM_PHP_OPEN_TAG:php} foreach (\$${1:variable} as \$${2:key}${3: => \$${4:value}}): ?>
${0}
<?${TM_PHP_OPEN_TAG:php} endforeach ?>]]></content>
<tabTrigger>foreach</tabTrigger>
<scope>embedding.php text.html - source.php</scope>
<description><?php foreach (…) … <?php endforeach ?></description>
</snippet>
I wanna change it to:
<snippet>
<content><![CDATA[
foreach ( \$$1 as \$$2 ) {
$0
}
]]></content>
<tabTrigger>foreach</tabTrigger>
<scope>embedding.php text.html - source.php</scope>
<description>foreach ( $... as $... ) { ... }</description>
</snippet>
But the default one is still there and nothing is changed. So far this only happens on this specific snippet, is this a bug or am I missing something or I was doing something wrong here?