在工具里面 new snippet 建立文件并保存,文件后缀名一定要是sublime-snippet 按照里面格式写就好
譬如:
<snippet>
<content><![CDATA[
Hello, ${1:this} is a ${2:snippet}.//内容区
]]></content>
<tabTrigger>hello</tabTrigger>//触发字
<scope>source.php</scope>//谁支持
</snippet>
譬如:
<snippet>
<content><![CDATA[
Hello, ${1:this} is a ${2:snippet}.//内容区
]]></content>
<tabTrigger>hello</tabTrigger>//触发字
<scope>source.php</scope>//谁支持
</snippet>
新版的,可以直接在选项中添加新的快捷键