[Vuejs]-VS Code emmet custom snippets in .vue file

0👍

What you’re looking for is probably

> Snippets: Configure User Snippets

Then selecting

vue-html.json

With this example JSON

{
  "test snippet": {
    "prefix": "vvtest",
    "body": [
      "some ${1:test}"
    ],
    "description": "some random test snippet for the template part of Vue"
  }
}

enter image description here

Press tab and you’ll get the following

enter image description here


PS: note that the ${1:test} part will make that test is highlighted so that it can be quickly overridden. You can also cycle towards a number 2, 3, etc…with other $2 ... with tab.

Here is the official page for this feature.

Leave a comment