怎样快速打开HTML模板
打开vsCode,创建html文件,输入!+回车
怎样修改HTML模板
文件------>首选项------>用户代码片段,找到html.json,打开
输入以下代码,不满意可修改
"h5 sample": {
"prefix": "h",
"body": [
"<!DOCTYPE html>",
"<html lang=\"zh-CN\">\n",
"<head>",
"\t<meta charset=\"UTF-8\">",
"\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,minimal-ui:ios\">",
"\t<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">",
"\t<title>Document</title>",
"</head>\n",
"<body>\n$3",
"</body>\n",
"</html>"
],
"description": "The full sample code - html5."
}
修改完之后保存就可以了