代码片段及使用习惯

HTML:

"ss": {
    "prefix": "ss",
    "body": [
            "<script src=\"$1\"></script>"
    ],
    "description": "<script src=\"...\"></script>"
},
"html5": {
    "prefix": "html5",
    "body": [
            "<!DOCTYPE html>",
            "<html lang=\"zh-CN\">",
            "",
            "<head>",
            "  <meta charset=\"UTF-8\">",
            "  <meta name=\"viewport\" content=\"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0\">",
            "  <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">",
            "  <title>${1:Document}</title>",
            "</head>",
            "",
            "<body>",
            "  $2",
            "</body>",
            "",
            "</html>"
    ],
    "description": "HTML5"
}
}

JavaScript:

{
    "dg": {
        "prefix": "dg",
        "body": [
            "document.getElementById($1)"
        ],
        "description": "document.getElementById(id)"
    }

vscode:

    "editor.fontFamily": "Source code Pro,Menlo,Monaco,'Courier New'",
    "editor.renderLineHighlight": "none",
    "editor.lineHeight": 25,
    "editor.roundedSelection": false,
    "extensions.autoUpdate": true,
    "editor.fontSize": 16,
    "editor.tabSize": 2,
    "files.associations": {
        "*.ejs": "html",
        "*.wxss": "css"
    },
    "workbench.iconTheme": "vscode-icons",
    "files.autoSave": "afterDelay",
    "workbench.colorTheme": "One Dark Pro",
    "editor.wordBasedSuggestions": false,
    "editor.minimap.enabled":false,
    "editor.lineNumbers": "off",
    "editor.parameterHints": false,
    "workbench.sideBar.location": "right", 
    "emmet.showSuggestionsAsSnippets": true,   
    "editor.snippetSuggestions": "top"
    
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容