先看下示例,在输入 ! 号回车后自动生成一段代码片段。
这样我们就可以更便捷的进行代码编写了。
{
"Html templates": {
"prefix": "html",
"body": [
"<!DOCTYPE html>",
"<html>",
"<head>",
" <meta charset=\"UTF-8\">",
" <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">",
" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
" <title>xxx</title>",
"</head>",
"<body>",
"$0",
"</body>",
"</html>",
"$BLOCK_COMMENT_START",
"文件名:$TM_FILENAME",
"日期:$CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE",
"$BLOCK_COMMENT_END"
],
"description": "Html templates"
}
}
然后输入 html 就能触发了,那个前面有个方块的就是。