From 52d1c37e387f1f36d63ec7982e79a150082fc81c Mon Sep 17 00:00:00 2001 From: liuxiaobo <1224730913@qq.com> Date: Wed, 9 Jul 2025 23:25:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5vscode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - .vscode/launch.json | 12 ++++++++++++ .vscode/settings.json | 11 +++++++++++ .vscode/tasks.json | 18 ++++++++++++++++++ 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.gitignore b/.gitignore index 0197d8a..a93371d 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,6 @@ node_modules/ #////////////////////////// # VSCode #////////////////////////// -.vscode/ #////////////////////////// # WebStorm diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..f5bda9c --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,12 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "chrome", + "request": "launch", + "name": "Cocos Creator Launch Chrome against localhost", + "url": "http://localhost:7456", + "webRoot": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..bde8348 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "json.validate.enable": false, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true, + "prettier.singleQuote": true, + "prettier.semi": false, + "prettier.tabWidth": 2, + "prettier.trailingComma": "es5", + "prettier.bracketSameLine": true, + "prettier.printWidth": 150 +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..f3e72d7 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,18 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Cocos Creator compile", + "command": "curl", + "args": [ + "http://localhost:7456/asset-db/refresh" + ], + "type": "shell", + "isBackground": true, + "group": "build", + "presentation": { + "reveal": "always" + } + } + ] +} \ No newline at end of file