Sublimetext2 是否可以在Emmet中更改默认的lorem ipsum?

Sublimetext2 是否可以在Emmet中更改默认的lorem ipsum?,sublimetext2,emmet,Sublimetext2,Emmet,这些东西到处都是,但我绝对不可能用手把它们复制粘贴到崇高的文本2中。我太喜欢埃米特(lorem100)的捷径了 有人知道如何将默认ipsum更改为这些自定义ipsum之一,以便Emmet为我插入它吗?您可以编写自己的代码片段 <snippet> <content><![CDATA[ Fromage cheesy feet pecorino. Cheese and biscuits cut the cheese when the cheese comes ou

这些东西到处都是,但我绝对不可能用手把它们复制粘贴到崇高的文本2中。我太喜欢埃米特(lorem100)的捷径了


有人知道如何将默认ipsum更改为这些自定义ipsum之一,以便Emmet为我插入它吗?

您可以编写自己的代码片段

<snippet>
    <content><![CDATA[
Fromage cheesy feet pecorino. Cheese and biscuits cut the cheese when the cheese comes out everybody's happy melted cheese jarlsberg cheesy feet dolcelatte goat. Cut the cheese cheesecake fondue halloumi dolcelatte cheese and wine macaroni cheese emmental. Halloumi port-salut hard cheese taleggio cheese strings.

Caerphilly who moved my cheese roquefort. Boursin brie chalk and cheese cheese triangles when the cheese comes out everybody's happy cottage cheese stinking bishop goat. Cheese on toast swiss taleggio feta goat queso bavarian bergkase edam. Cottage cheese smelly cheese cheesy grin cut the cheese fondue everyone loves.
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>lorem200</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>text.html</scope>
</snippet>

lorem200
text.html

现在,如果您在HTML文件中编写
lorem200
,然后按Tab键,您将获得已定义的lorem ipsum。

您可以将自己的lorem ipsum文本添加到Emmet中:您应该将自己的虚拟词注册为新语言

要向Lorem Ipsum添加新语言,请在中创建一个JS文件,其中包含以下内容:

emmet.require('lorem')。addLang('my','通过即插即用网络协同管理授权市场')
第一个参数是语言名称(必须是两个字母的单词),第二个参数是空格分隔的单词,用于生成虚拟文本

按如下方式使用此生成器:
loremmy100


您也可以将您的虚拟文本语言设置为默认语言:只需在中覆盖
lorem.defaultLang
设置,例如,将其设置为
“lorem.defaultLang”:“my”
,这样您就可以简单地编写
lorem100

对不起,我在这方面有点不熟悉。。。那么这段代码将保存在任何包的文件夹中。最好是在
用户
中。在这里阅读更多精彩。非常感谢你。