打开vscode---首选项---配置用户代码片段---确认片段名字确认
//例:{ "creat Class": { "scope": "javascript,typescript", "prefix": "class", "body": [ "/**", "*", "* @ author:xxx", "* @ email:371423398@qq.com", "* @ data: $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE", "*/", "export default class $TM_FILENAME_BASE extends Laya.Script {", "", "\tconstructor() {", "\t\tsuper();", "\t}", "\t\t/** @prop {name:xxx, tips:\"面板物体\", type:Node, default:null}*/", "\t\t xxx=null;", "", "\tonAwake() {", "\t}", "}" ], "description": "快速创建一个Laya模板类" } }
请赞赏
朋友,创作不易;为犒赏小编的辛勤劳动,请她喝杯咖啡吧!
给她赞赏,您将财运亨通