1.左下角设置-用户代码片段
2.选择HTML.json以创建HTML模板
3.在json文件中添加如下内容:
"HTML Snippets": {
"prefix": "!doc",
"body": [
"<!DOCTYPE html>",
"<html>",
"\t<head>",
"\t\t<meta charset=\"UTF-8\" />",
"\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=0\" />",
"\t\t<title>$1</title>",
"\t</head>",
"\t<body>",
"\t\t$0",
"\t</body>",
"</html>"
],
"description": "HTML Template"
}