{ // 后端 Python 虚拟环境 "python.defaultInterpreterPath": "${workspaceFolder}/backend/.venv/Scripts/python.exe", "python.terminal.activateEnvironment": true, "python.venvPath": "${workspaceFolder}/backend", "python.venvFolders": [".venv"], "github.copilot.chat.commitMessageGeneration.instructions": [ { "text": "Generate Git commit messages in Simplified Chinese by default." }, { "text": "Follow Conventional Commits format: (): ." }, { "text": "Use English for type and scope; use Simplified Chinese for subject and body." }, { "text": "Allowed types are feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert." }, { "text": "The subject must be imperative, no period at the end, and no longer than 100 Chinese characters." }, { "text": "Avoid vague messages such as update, fix bug, or WIP." }, { "text": "When a body is useful, write concise Chinese bullet points describing concrete changes." } ], // 默认终端:加载 cd 钩子,进入 backend 时自动激活 .venv "terminal.integrated.defaultProfile.windows": "PowerShell (HXOPS)", "terminal.integrated.profiles.windows": { "PowerShell (HXOPS)": { "source": "PowerShell", "icon": "terminal-powershell", "args": [ "-NoExit", "-ExecutionPolicy", "Bypass", "-File", "${workspaceFolder}/scripts/powershell-backend-auto-venv.ps1" ] }, "HXOPS Backend": { "source": "PowerShell", "icon": "server-environment", "args": [ "-NoExit", "-ExecutionPolicy", "Bypass", "-Command", "Set-Location '${workspaceFolder}/backend'; if (Test-Path '.venv/Scripts/Activate.ps1') { . '.venv/Scripts/Activate.ps1' }" ] } }, "js/ts.tsdk.path": "node_modules\\typescript\\lib" }