我正在尝试为 Sublime Text 3 创建自己的片段。这里是:
<snippet>
<content><![CDATA[
// begin $1
.$1$2
// 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>source.pug, text.pug</scope>
</snippet>
但它仅适用于文档的最后一行。怎么了?