sublime text snippet代码片断

$0 代表补全代码后放的位置   0 的权重是最低的
$1 最高 也等于${1:} 
${1: name}    1输入点的序号(1权重最高) name 自动补全的默认值 
 
 
<content><![CDATA[ ]]></content>之间是要提示的代码
<tabTrigger></tabTrigger>触发
<scope></scope> 触发的文本类型 如text.html source.html    不写则所以的编辑文本都会    source.xx或 text.xx   soerce表示某种代码   text表示某种文件
<description></description>描述
 
 
<snippet>
<content><![CDATA[function ($1){
//to doing
${1:name}
},]]></content>
<tabTrigger>func,</tabTrigger>
<!-- <scope>text.html</scope> -->
<description>func,</description>
</snippet>
 
实现。。 func  =>
function (name){
      //to doing
     name
},
 
 
 
 
原文地址:https://www.cnblogs.com/zycbloger/p/6197548.html