N
N
neznaiaka2020-12-02 18:19:20
Visual Studio Code
neznaiaka, 2020-12-02 18:19:20

Why is there no tab on the snippet in vs code?

Typing "ss" inserts the snippet, but without saving the tab

"<div class="container">",
"<div class="row">",
"<div class="col"> </div>",
"</div>",
"</div>"

{
  "Print to console": {
    "prefix": "ss",
          "body": [
      "<div class=\"container\">",
               "<div class=\"row\">",
                     "<div class=\"col\">$1</div>",
             "</div>",
      "</div>"
    ]
  }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
luten23, 2021-10-15
@luten23

instead of tabs, you need to write \t inside the line, the correct option is:

{
  "Print to console": {
    "prefix": "ss",
          "body": [
              "<div class=\"container\">",
              "\t<div class=\"row\">",
              "\t\t<div class=\"col\">$1</div>",
              "\t</div>",
              "</div>"
    ]
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question