使Emmet在属性和其值之间放置空间是否可以选择?
当使用Emmet在VSCODE中自动完成时,例如:
div.class
它自动完成:
<div class="class"></div>
我想知道是否可以在Vscode上配置EMMET,以便以这样的自动完成:
<div class = "class"></div>
我发现settings.json 我可以使用
emmet.syntaxisprofiles
更改EMMET的某些行为,例如,当我使用时:
"emmet.syntaxProfiles": {
"html": {
"self_closing_tag": true,
"attr_case": "lower"
}
}
IT自动完成标签,例如br
to &lt; br/gr/gt; br/gt; < /code>,我想知道是否有一个属性可以帮助我在html中的属性和值之间的空间,但没有创建新片段。
When using emmet to autocomplete in VSCode, when I write for example:
div.class
It auto completes to:
<div class="class"></div>
I want to know if its possible to configure emmet on VSCode to autocomplete like this:
<div class = "class"></div>
I've found that in settings.json
I can change some behaviour of emmet with emmet.syntaxisProfiles
, for example when I use:
"emmet.syntaxProfiles": {
"html": {
"self_closing_tag": true,
"attr_case": "lower"
}
}
It autocompletes tags like br
to <br/>
and I want to know if there is a property that can help me with the spaces between attribute and value in HTML but without creating new snippets.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论