在launch.json里添加"preLaunchTask":“CocosCreator compile”
在cocos creator里选择开发者,visual studio code工作流,选择添加编译任务。
添加 settings.json
{"files.exclude":{"**/.git": true,"**/.DS_Store": true,"**/*.meta": true,"library/": true,"local/": true,"temp/": true},"search.exclude": {"**de_modules": true,"**/bower_components": true,"build/": true,"temp/": true,"library/": true,"**/*.anim": true}
}