zoukankan      html  css  js  c++  java
  • vscode如何设置html模板

    文件->首选项->用户片段;搜索html.json;以下是一个标准的HTML模板。

    {
        // Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and 
        // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
        // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the 
        // same ids are connected.
        // Example:
        "Print to index": {
            "prefix": "index", //模板的快捷键
            "body": [
                "<!DOCTYPE html>",
                "<html lang="en">",
                "	<head>",
                "		<meta charset="UTF-8">",
                "		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">",
                "		<title>Document</title>",
                "		<link rel="stylesheet" type="text/css" href="" />",
                "	</head>",
                "	<style type="text/css"></style>",
                "	<body>
    ",
                "	</body>",
                "	<script src="" type="text/javascript" charset="utf-8"></script>",
                "</html>"
            ],
            "description": "HT-H5" //模板的描述 
        }
    }
    一辈子很短,努力的做好两件事就好;第一件事是热爱生活,好好的去爱身边的人;第二件事是努力学习,在工作中取得不一样的成绩,实现自己的价值,而不是仅仅为了赚钱。
  • 相关阅读:
    Web开发中的显示与隐藏
    Html中的表格
    go标准库的学习-encoding/json
    go-simplejson文档学习
    go标准库的学习-regexp
    go标准库的学习-net
    go标准库的学习-strconv-字符串转换
    go标准库的学习-strings-字符串操作
    go标准库的学习-net/rpc
    go标准库的学习-net/rpc/jsonrpc
  • 原文地址:https://www.cnblogs.com/antao/p/13178178.html
Copyright © 2011-2022 走看看