Files
hldrCenter/hldrCenter.code-workspace
2025-10-03 22:30:54 +08:00

75 lines
2.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"folders": [
{
"name": "server",
"path": "./server" // 使用相对路径,避免绝对路径在不同系统失效
},
{
"name": "management",
"path": "./management"
},
{
"name": "web",
"path": "./web"
}
],
"settings": {
// 通用设置(跨系统一致)
"editor.tabSize": 2,
"files.eol": "\n", // 强制使用Unix换行符避免Git提交时的换行符冲突
"files.autoSave": "onFocusChange", // 跨系统统一自动保存时机
// Go配置兼容Windows和macOS的路径处理
"[go]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
},
"go.gopath": "${workspaceFolder}/server", // 使用变量自动适配系统路径格式
"go.toolsManagement.goPath": "${workspaceFolder}/server",
"go.buildOnSave": "workspace", // 跨系统统一构建行为
// Vue配置跨系统一致的格式化规则
"[vue]": {
"editor.formatOnSave": true
},
"[javascript]": {
"editor.formatOnSave": true
},
"[typescript]": {
"editor.formatOnSave": true
},
"vetur.format.defaultFormatter.html": "prettier",
"vetur.format.defaultFormatter.css": "prettier",
"vetur.format.defaultFormatter.js": "prettier",
"prettier.singleQuote": true,
"prettier.semi": false,
"prettier.endOfLine": "lf", // 强制Prettier使用LF换行符
// 解决Windows和macOS文件大小写敏感性差异
"filesystem.watcher.ignored": [
"**/.git/objects/**",
"**/.git/subtree-cache/**"
],
"search.followSymlinks": false // 避免符号链接在不同系统的处理差异
},
"extensions": {
"recommendations": [
// Go相关扩展
"golang.go",
"zxh404.vscode-proto3", // 若有protobuf文件跨系统通用
// Vue相关扩展
"octref.vetur",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"Vue.volar", // 现代Vue开发推荐兼容Vetur
// 跨系统工具链
"editorconfig.editorconfig", // 强制统一编辑器行为
"eamodio.gitlens" // Git工具跨系统一致
]
}
}