美文网首页
sublime3 编写snippet

sublime3 编写snippet

作者: kamionayuki | 来源:发表于2015-05-26 20:24 被阅读19次

参考这篇文档
http://www.csdn123.com/html/blogs/20131102/92241.htm
例子:

<snippet>  
<content><![CDATA[
Hello, ${1:this} is a ${2:snippet}.
]]></content>  
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->  
<!-- <tabTrigger>hello</tabTrigger> -->  
<!-- Optional: Set a scope to limit where the snippet will trigger -->  
<!-- <scope>source.ruby</scope> -->
</snippet>

windows和linux下,通过按下ctrl+shift+alt+p来显示文件的scope

相关文章

网友评论

      本文标题:sublime3 编写snippet

      本文链接:https://www.haomeiwen.com/subject/rzerqttx.html