I found a snippet for creating comments in html (and not only), in SB it works perfectly. In phpstorm, it unfolds, but I cannot understand why it does not pick up variables.

Snippet example for SB:

<snippet> <content><![CDATA[ <!-- begin $1 --> <div class="$1"> $2 </div> <!-- end $1 --> ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>di</tabTrigger> <!-- Optional: Set a scope to limit where the snippet will trigger --> <scope>text.html</scope> </snippet> 

An example snippet for phpstorm:

 <!-- Begin $1$ --> <div class="$1$"> </div> <!-- End $1$ --> 

Thank you all, the problem was solved by complete demolition, and installation from scratch.

  • and write the name of a snippet? - Alexander Belinsky

1 answer 1

What means does not catch? When you expand the snippet, the input field appears at the place of the first occurrence of the variable (in the red frame), when you enter a value, the code is updated:

enter image description here

input is completed by pressing Enter . Actually snippet:

enter image description here