D
D
Durosentine2021-03-03 15:55:20
HTML
Durosentine, 2021-03-03 15:55:20

Why might the tag_nl syntax setting for Emmet not work in VS Code?

Trying to wrap inline tags to a new line when using emmet in VS Code

/* a*3 + tab имеем */
    <a href=""></a><a href=""></a><a href=""></a>

/* a*3 + tab ожидаемый результат */
    <a href=""></a>
    <a href=""></a>
    <a href=""></a>


In the emmet documentation, the parameter "tag_nl" with the value true should be responsible for this, but there is no result. Other syntax options work in this case (for example, "tag_case"). What could be the reason for this behavior of the editor?
https://docs.emmet.io/customization/syntax-profiles/

"emmet.syntaxProfiles": {

        "html": {
            "tag_nl": true,
            "tag_case": "upper",
        }
    },

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RAX7, 2021-03-03
@Durosentine

"emmet.syntaxProfiles": {
  "html": {
    "inline_break": 1
  }
},

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question