初始化
This commit is contained in:
74
hldrCenter.code-workspace
Normal file
74
hldrCenter.code-workspace
Normal file
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"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工具,跨系统一致
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user