夏旭阳本阳 发布于:2024-12-03 13:49:20
在文件-》首选项-》代码片段——修改 html.json
{ // 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 console": { "prefix": "log", "body": [ "console.log('$1');", "$2" ], "description": "Log output to console" }, "loop开头 内容 article":{ "prefix": "loop", "body": [ "{loop table=\"article\" tid=\"1\" isall=\"1\" limit=\"10\" isshow=\"1\" as=\"v\"}" ], "description": "Log output to console" }, "loop开头 栏目 classtype":{ "prefix": "loop", "body": [ "{loop table=\"classtype\" pid=\"1\" limit=\"10\" isshow=\"1\" as=\"v\"}" ], "description": "Log output to console" }, "loop开头 轮播":{ "prefix": "loop", "body": [ "{loop table=\"collect\" tid=\"1\" limit=\"10\" isshow=\"1\" as=\"v\"}" ], "description": "Log output to console" }, "loop结束":{ "prefix": "loop", "body": [ "{/loop}" ], "description": "Log output to console" }, "title":{ "prefix": "vt", "body": [ "{$v['title']}" ], "description": "Log output to console" }, "url":{ "prefix": "vu", "body": [ "{$v['url']}" ], "description": "Log output to console" }, "description":{ "prefix": "vd", "body": [ "{$v['description']}" ], "description": "Log output to console" }, "litpic":{ "prefix": "vl", "body": [ "{$v['litpic']}" ], "description": "Log output to console" }, "body":{ "prefix": "vb", "body": [ "{$v['body']}" ], "description": "Log output to console" }, "addtime":{ "prefix": "va", "body": [ "{fun date('Y-m-d',$v['addtime'])}" ], "description": "Log output to console" } }
登录后可以留言提问!
微信扫码登录