文件–》首选项–》用户代码片段 新建全局用户代码片段文件–》定义文件名–》写代码
代码格式
{
"vq": {
"prefix": "vq", // 触发的关键字 输入vq按下tab键
"body": [
"
<!DOCTYPE html>",
"<html lang=\"en\">",
"",
"
<head>",
" <meta charset=\"UTF-8\">",
" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
" <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">",
"
<title>Document
</title>",
" <script src=\"../jquery-3.4.1.js\">
</script>",
"
<style>",
" *{",
" margin:0px;",
" padding:0px;",
" }",
" </style>",
"
</head>",
"",
"
<body>",
"
<div> ",
"",
"
</div>",
"
<script>",
" $(function(){",
"",
" })",
" </script>",
"
</body>",
"",
"
</html>",
],
"description": "vq jq的components"
}
}