sublime text 3 的emmet 添加自定义 html 片段

比如想在html写 jquery 直接添加jquery地址,打开 ‘首选项->Package Setting->Emmet->Settings - User’,

css也可以如法炮制,代码如下

{
    "syntaxProfiles": {
        // Enable XHTML dialect for HTML syntax
        "html": "xhtml"
    },
    "snippets": { "html": { "abbreviations": { "jquery": "<script src='http://localhost/static/js/jquery.js'></script>" } }, "css": { "filters": "html", "snippets": { "csdn":"taodesign.cnblogs.com" } } }
}

 

你可能感兴趣的:(sublime text 3 的emmet 添加自定义 html 片段)