[AppleScript] 纯文本查看 复制代码
"link": {
"prefix": "link",
"body": "<link rel=\"stylesheet\" type=\"text/css\" href=\"$1\"/>",
"description": "my link tag"
}
[AppleScript] 纯文本查看 复制代码
{
"link": {
"prefix": "link",
"body": "<link rel=\"stylesheet\" type=\"text/css\" href=\"$1\"/>",
"description": "my link rth"
},
"script tag": {
"prefix": "scm",
"body": [
"<script src='$1'></script>"
],
"description": "my script with src"
},
"template": {
"prefix": "tmp",
"body": [
"<script type=\"text/template\" id=\"tmp\">",
"$1",
"</script>"
],
"description": "my template"
},
"style": {
"prefix": "stm",
"body": [
"<style>",
" * {",
" margin: 0;",
" padding: 0;",
" }",
" $1",
"</style>"
],
"description": "my style with p0m0"
},
"meta": {
"prefix": "meta",
"body": [
"<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no\">"
],
"description": "理想视口"
},
"canvas template": {
"prefix": "cvs",
"body": "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n <title>Document</title>\n <style>\n canvas {\n border: 1px solid #ccc;\n }\n </style>\n</head>\n\n<body>\n <canvas width=\"800\" height=\"600\"></canvas>\n <script>\n var canvas = document.querySelector(\"canvas\");\n var ctx = canvas.getContext(\"2d\");\n\n $1\n\n </script>\n</body>\n\n</html>",
"description": "canvas模板"
}
}
[AppleScript] 纯文本查看 复制代码
{
"console log": {
"prefix": "log",
"body": "console.log('$1');"
},
"For loop": {
"prefix": "forloop",
"body": "for (var i = 0; i < ${1:array}.length; i++) {\n$2\n}"
},
"Function": {
"prefix": "func",
"body": "function $1($2) {\n$3\n}"
},
"document.querySelector": {
"prefix": "dq",
"body": "var $1 = document.querySelector('$1');"
},
"document.querySelectorAll": {
"prefix": "dqa",
"body": "var $1 = document.querySelectorAll('$1');"
},
"use strict": {
"prefix": "use",
"body": "'use strict'"
},
"const": {
"prefix": "cst",
"body": "const $1 = require('$1');"
},
"writeHead": {
"prefix": "rwh",
"body": "res.writeHead({\n'Content-Type': 'application/json; charset=utf-8',\n'Access-Control-Allow-Origin': '*',\n'Access-Control-Allow-Methods': '*'\n})"
},
"import": {
"prefix": "ipf",
"body": "import $1 from '$1';"
}
}