vsCode+Emmet autocompletion) - insert newline inside div after hit 'tab'

Viewed 983

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 Answers

Guys from Github helped:

"emmet.preferences": {
    "format.forceIndentationForTags": [
        "div",
        "header",
        "nav",
        "aside"
    ]
},
Related