laya2.4版本以后,内置的vscode删除了,没有代码编辑器了,需要外置打开vscode.(这1点很落后,比cocos差远了,哎)
只能自己在vscode写代码,生成一个代码模板。
clipboard (2).png clipboard.png clipboard (1).png{
"React-Native Class":{
"scope": "javascript,typescript",
"prefix": "laya_module",
"body": [
"/**",
"*",
"* @ author:cmd",
"* @ wechat:codercmd@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/** @prop {name:name, tips:\"提示文本\", type:Node, default:null}*/",
"\t\tthis.xx=null;",
"\t}",
"",
"\tonAwake() {",
"\t}",
"}"
],
"description": "快速创建一个Laya模板类"
}
}
网友评论