Emmet覆盖了片段

Set*_*art 2 html overwrite html-lists code-snippets emmet

我一直在关注Jeffery Way在Tuts +上提供的关于HTML和CSS的课程:

http://learncss.tutsplus.com/

我看了Zen Coding的视频:

http://learncss.tutsplus.com/lesson/zen-coding/

我尝试将Zen Code安装到Sublime Text 2但无法使其工作.我在网上环顾四周,找到了Emmet,这似乎是新的最好的东西.所以我通过Command Pallete>"Package Install">"Emmet"安装.它工作得很好,唯一的问题是我之前用过的片段被Emmet覆盖了.

我使用的代码片段:

<snippet>
   <content><![CDATA[
<li type="square">${1:Item} ${2:}
]]></content>
   <tabTrigger>li</tabTrigger>
</snippet>
Run Code Online (Sandbox Code Playgroud)

li + Tab会触发:

<li type="square">
Run Code Online (Sandbox Code Playgroud)

有没有办法让我在Sublime Text 2中将它添加到Emmet?或者使用Emmet来完成这个标签?我找到了Emmet tabtriggers的这个指南,但找不到这个:

http://docs.emmet.io/cheat-sheet/

Ser*_*nok 6

您可以在Emmet中创建自己的代码段:http : //docs.emmet.io/customization/snippets/ http://docs.emmet.io/abbreviations/types/

...或禁用li由Emmet处理的代码段:https: //github.com/sergeche/emmet-sublime/blob/master/Emmet.sublime-settings#L55

...或禁用Emmet选项卡触发器并使用Ctrl + E:https: //github.com/sergeche/emmet-sublime/blob/master/Preferences.sublime-settings#L14

...或者你的ST段重命名为类似li2,lit等等.