简体   繁体   中英

How to fix temperamental sublime snippet?

I have a relativley simple custom snippet:

<snippet>
    <content><![CDATA[
#### ${1:subtitle}
$2
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>st</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <!-- <scope>source.python</scope> -->
</snippet>

It's working about 25% of the time. Sometimes the snippet will work, other times the cursor will randomly jump up about 5 lines, other times it will jump down a couple lines and other times still it will just do a normal tab. Is there any way to fix this so it just works all the time?

问题是我正在使用第二个选项卡区域,而它仅作为$2 ,可以在这里找到更详细的解决方案

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM