vsCode+Emmet 自动完成) - 在点击“tab"后在 div 中插入换行符 [英] vsCode+Emmet autocompletion) - insert newline inside div after hit 'tab'
本文介绍了vsCode+Emmet 自动完成) - 在点击“tab"后在 div 中插入换行符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
默认情况下,vsCode 不会将 div 标签拆分成行:
据我所知,这是因为 div 是一个 blick 元素.但我希望它像这样自动完成:
_
这里的下划线是光标位置.
有设置吗?
我已经找到的是 endWithNewLine,但它是不同的设置,对于文件
解决方案
来自 Github 的人帮助了:
"emmet.preferences": {format.forceIndentationForTags":["div","标题","导航",在旁边"]},
by default vsCode does not split div tag into lines:
<div></div>
As I understand this is because div is a blick element. but I want it to autocomplete like this:
<div>
_
</div>
Underline here is cursor position.
Is there a setting for it?
What I've already found is endWithNewLine, but it is different setting, for files
解决方案
Guys from Github helped:
"emmet.preferences": {
"format.forceIndentationForTags": [
"div",
"header",
"nav",
"aside"
]
},
这篇关于vsCode+Emmet 自动完成) - 在点击“tab"后在 div 中插入换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文