Link+tab shortcut Emmet on VSCode - How can I get the “type” to be included in this?

后端 未结 1 1948
北荒
北荒 2021-01-17 01:11

When I type the shortcut link+tab to get the link tag and attributes.

It only shows:

1条回答
  •  被撕碎了的回忆
    2021-01-17 01:44

    Put this into your settings:

    "emmet.extensionsPath": "C:\\Users\\Mark\\Test Bed\\.vscode",  
    // with path to your .vscode folder.
    // right-click on the folder in your explorer bar and choose Copy Path - use that in above
    

    The above will allow emmet to find the snippets you will create.

    Create a snippets.json file in your .vscode folder.

    Put this into that file:

    {
      "html": {
        "snippets": {
            "link": ""
        }
      }
    }
    

    Reload vscode window after any changes to this file or you won't see the changes take effect!

    or use this form if you want to use double quotes:

            "link": ""
    

    More info here: https://code.visualstudio.com/docs/editor/emmet#_using-custom-emmet-snippets

    0 讨论(0)
提交回复
热议问题