比如想在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" } } } }
时间: 2024-11-03 20:56:07