同步vscode

This commit is contained in:
liuxiaobo 2025-07-09 23:25:36 +08:00
parent eed98a5202
commit 52d1c37e38
4 changed files with 41 additions and 1 deletions

1
.gitignore vendored
View File

@ -17,7 +17,6 @@ node_modules/
#////////////////////////// #//////////////////////////
# VSCode # VSCode
#////////////////////////// #//////////////////////////
.vscode/
#////////////////////////// #//////////////////////////
# WebStorm # WebStorm

12
.vscode/launch.json vendored Normal file
View File

@ -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}"
}
]
}

11
.vscode/settings.json vendored Normal file
View File

@ -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
}

18
.vscode/tasks.json vendored Normal file
View File

@ -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"
}
}
]
}