选择打开tools ->developer->new snippet <snippet> <content><![CDATA[Hello, ${1:this} is a ${2:snippet}. ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <!-- <tabTrigger>hello&l
打开tools>developer>new snippet 默认代码 <snippet> <content><![CDATA[ Hello, ${1:this} is a ${2:snippet}. ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <!-- <tabTrigger>hello&
菜单栏目选 Tools(工具) =>Developer(插件开发)=>New Snippet....(新建代码片段),如图: 接着会新开一个标签页,会附带一些内容:如图: 将“Hello, ${1:this} is a ${2:snippet}.”替换成需要生成的代码块,“${1:this}”为生成代码块之后需要替换的内容.解开<tabTrigger>hello</tabTrigger>标签的注释,标签中的hello为触发该代码块的快捷方式,最后我们保存到sublime