chore: 更新editorconfig和vscode设置;添加extensions.json
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}]
|
[*.{html,wxml,json,xml,yaml,yml,js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl,wxss}]
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ Thumbs.db
|
|||||||
# Editor directories and files
|
# Editor directories and files
|
||||||
.vscode/*
|
.vscode/*
|
||||||
!.vscode/extensions.json
|
!.vscode/extensions.json
|
||||||
|
!.vscode/settings.json
|
||||||
.idea
|
.idea
|
||||||
*.suo
|
*.suo
|
||||||
*.ntvs*
|
*.ntvs*
|
||||||
|
|||||||
Vendored
+25
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
// --- 核心基础体验 ---
|
||||||
|
"MS-CEINTL.vscode-language-pack-zh-hans", // 中文包
|
||||||
|
"PKief.material-icon-theme", // 图标主题
|
||||||
|
"EditorConfig.EditorConfig", // 跨编辑器配置统一
|
||||||
|
|
||||||
|
// --- 视觉与阅读辅助 ---
|
||||||
|
"usernamehw.errorlens", // 错误直接显示在行尾 (神器)
|
||||||
|
"oderwat.indent-rainbow", // 缩进颜色高亮
|
||||||
|
"wayou.vscode-todo-highlight", // TODO 高亮
|
||||||
|
|
||||||
|
// --- 编写效率工具 ---
|
||||||
|
"formulahendry.auto-close-tag", // 自动闭合标签
|
||||||
|
"formulahendry.auto-rename-tag", // 标签同步重命名
|
||||||
|
"christian-kohler.path-intellisense", // 文件路径自动补全
|
||||||
|
|
||||||
|
// --- 代码质量管控 ---
|
||||||
|
"dbaeumer.vscode-eslint", // JS/TS 代码校验
|
||||||
|
"esbenp.prettier-vscode", // 代码美化格式化
|
||||||
|
|
||||||
|
// --- Git 与 文档 ---
|
||||||
|
"eamodio.gitlens" // Git 历史查看神器
|
||||||
|
]
|
||||||
|
}
|
||||||
Vendored
+14
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.fixAll": "explicit"
|
||||||
|
},
|
||||||
|
"editor.tabSize": 2,
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||||
|
"[wxml]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[wxss]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user