问题
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
回答1:
Guys from Github helped:
"emmet.preferences": {
"format.forceIndentationForTags": [
"div",
"header",
"nav",
"aside"
]
},
来源:https://stackoverflow.com/questions/47239095/vscodeemmet-autocompletion-insert-newline-inside-div-after-hit-tab