在壮美文本中将emmet autocompletes展开成多行 [英] Expand emmet autocompletes to multiple lines in sublime text

查看:131
本文介绍了在壮美文本中将emmet autocompletes展开成多行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  .one> label {foo} + input:r当我在eml中使用sublime text 2输入以下内容时: 

我得到一行很长的代码

 < div class =one>< label for => foo< / label>< input type =radioname =id = >< / DIV> 

有没有办法让emmet / sublime输出这个样式呢?

 < div class =one> 
< label for => foo< / label>
< input type =radioname =id =>
< / div>

我试着玩snippets.json而没有成功。


<使用

的内容创建Packages / User / Emmet.sublime-设置

  {
//语法输出配置文件
// http://docs.emmet.io/customization/syntax-profiles/
syntaxProfiles:{
html:{
tag_nl:true
//tag_nl_leaf:true
}
}
}

然后检查文档了解更多关于tag_nl,tag_nl_leaf和其他选项的信息。


When I type the following in sublime text 2 with emmet:

.one>label{foo}+input:r

I get one long line of code

<div class="one"><label for="">foo</label><input type="radio" name="" id=""></div>

is there any way to get emmet/sublime to output this style instead?

<div class="one">
    <label for="">foo</label>
    <input type="radio" name="" id="">
</div>

I tried playing around with the snippets.json with no success

解决方案

Create Packages/User/Emmet.sublime-settings with the content of

{
    // Output profiles for syntaxes
    // http://docs.emmet.io/customization/syntax-profiles/
    "syntaxProfiles": {
        "html": {
            "tag_nl": true
            // "tag_nl_leaf": true
        }
    }
}

And check the documentation for more information about tag_nl, tag_nl_leaf and other options.

这篇关于在壮美文本中将emmet autocompletes展开成多行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆