打开Vscode 找到设置 点击用户代码片段 上边输入html 也可以创建一个新的html
看一下操作
冒号引起来 在在它自身的冒号前边加一个反斜杠后面加一个反斜杠
"Print to console": {
"prefix": "v2", //快捷键
"body": [
"<!DOCTYPE html>",
"<html lang=\"en\">",
"<head>",
" <meta charset=\"UTF-8\">",
" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
" <title>Document</title>",
" <script src=\"https://cdn.staticfile.org/vue/2.7.0/vue.min.js\"></script>",
"</head>",
"<body>",
" <div id=\"box\"></div>",
"</body>",
"</html>",
}