-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.json
More file actions
216 lines (185 loc) · 7.47 KB
/
settings.json
File metadata and controls
216 lines (185 loc) · 7.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
{
"editor.smoothScrolling": true,
"editor.cursorBlinking": "expand",
"editor.cursorSmoothCaretAnimation": "on",
"workbench.list.smoothScrolling": true,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontSize": 17,
"editor.lineNumbers": "on",
"editor.cursorStyle": "line",
"editor.cursorWidth": 2,
"editor.minimap.enabled": false,
"editor.minimap.scale": 2,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSaveMode": "modifications",
"editor.quickSuggestionsDelay": 200,
"editor.guides.bracketPairs": true,
"editor.bracketPairColorization.enabled": true,
"terminal.integrated.fontFamily": "Fira Code",
"terminal.integrated.fontSize": 14,
"terminal.integrated.fontLigatures": true,
"terminal.integrated.lineHeight": 1.2,
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "line",
// 控制活动代码段是否阻止快速建议
"editor.suggest.snippetsPreventQuickSuggestions": false,
// 除了 `Tab` 键以外, `Enter` 键是否同样可以接受建议
// 这能减少“插入新行”和“接受建议”命令之间的歧义
"editor.acceptSuggestionOnEnter": "smart",
// 代码补全列表中,优先选择最近的建议
"editor.suggestSelection": "recentlyUsedByPrefix",
"editor.autoClosingBrackets": "beforeWhitespace",
"editor.autoClosingDelete": "always",
"editor.autoClosingOvertype": "always",
"editor.autoClosingQuotes": "beforeWhitespace",
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": true,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": true,
// 关闭缩进猜测
"editor.detectIndentation": false,
"editor.tabSize": 4,
"editor.wordWrap": "on",
"editor.lineHeight": 1.5,
"editor.stickyScroll.enabled": true,
// 双击选中被截断字符
"editor.wordSeparators": "`~!@%^&*()=+[{]}\\|;:'\",.<>/?(),。;:",
"editor.foldingStrategy": "indentation",
// 文件夹紧凑模式
"explorer.compactFolders": true,
"notebook.compactView": true,
"window.density.editorTabHeight": "compact",
"typescript.locale": "zh-CN",
// 类型提示
"javascript.inlayHints.enumMemberValues.enabled": true,
"javascript.inlayHints.functionLikeReturnTypes.enabled": false,
"javascript.inlayHints.parameterNames.enabled": "none",
"typescript.inlayHints.enumMemberValues.enabled": true,
"typescript.preferences.preferTypeOnlyAutoImports": true,
"typescript.updateImportsOnFileMove.enabled": "always",
"typescript.preferences.includePackageJsonAutoImports": "on",
"javascript.updateImportsOnFileMove.enabled": "always",
"javascript.preferences.quoteStyle": "single",
"typescript.preferences.quoteStyle": "single",
"typescript.suggest.autoImports": true,
"vue.updateImportsOnFileMove.enabled": true,
"vue.inlayHints.missingProps": true,
"vue.autoInsert.dotValue": true,
"workbench.startupEditor":"welcomePage",
"files.trimTrailingWhitespace": true,
"search.searchEditor.singleClickBehaviour": "peekDefinition",
"terminal.integrated.stickyScroll.enabled": true,
"terminal.integrated.shellIntegration.suggestEnabled": true,
// index 替换成 目录名
"workbench.editor.customLabels.patterns": {
"**/index.vue": "${dirname}.vue",
"**/index.js": "${dirname}.js",
"**/index.ts": "${dirname}.ts",
"**/index.jsx": "${dirname}.jsx",
"**/index.tsx": "${dirname}.tsx"
},
// 行内样式代码补全
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
// 手动更新
"update.mode": "manual",
// 搜索排除目录
"search.exclude": {
"**/node_modules": true,
"**/pnpm-lock.yaml": true,
"**/package-lock.json": true,
"**/.DS_Store": true,
"**/.git": true,
"**/.gitignore": true,
"**/.idea": true,
"**/.svn": true,
"**/.vscode": true,
"**/build": true,
"**/dist": true,
"**/tmp": true,
"**/yarn.lock": true
},
"files.associations": {
"*.wxss": "css",
"*.wxml": "html",
"*.svg": "html",
"*.xml": "html",
"*.wxs": "javascript",
// json注释
"*.cjson": "jsonc",
"*.json": "jsonc"
},
"files.watcherExclude": {
"**/node_modules/**": true,
"**/dist/**": true,
"**/build/**": true,
"**/tmp/**": true,
"**/.git/**": true,
"**/.svn/**": true,
"**/.hg/**": true
},
"files.defaultLanguage": "javascript",
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 200 ,
"files.useExperimentalFileWatcher": true,
"RainbowBrackets.depreciation-notice": false,
"extensions.ignoreRecommendations": true,
"workbench.iconTheme": "vscode-icons",
"workbench.editor.showTabs": "multiple",
"workbench.editor.tabSizing": "shrink",
"workbench.colorCustomizations": {
// === 资源管理器:文件夹/文件交互状态 ===
"list.focusForeground": "#ffffff", // 焦点项文字
"list.activeSelectionForeground": "#ffffff", // 选中项文字
"list.inactiveSelectionForeground": "#cccccc", // 非激活窗口选中项文字
"list.activeSelectionBackground": "#2e2d2c", // 当前窗口选中项背景(亮绿)
// "list.inactiveSelectionBackground": "#f2f6f2", // 非活动窗口选中项背景(深绿)
"list.hoverBackground": "#6a1b9a", // 鼠标悬浮项背景(紫)
"list.focusBackground": "#512da8", // 获取焦点项背景(紫)
"list.dropBackground": "#388e3c", // 拖放背景(深绿)
"list.highlightForeground": "#ffeb3b", // 匹配/搜索高亮文字(亮黄)
// === Git 状态颜色 ===
"gitDecoration.modifiedResourceForeground": "#b6a8d2", // 修改 - 紫色
"gitDecoration.addedResourceForeground": "#4caf50", // 新增 - 绿色
"gitDecoration.deletedResourceForeground": "#981910", // 删除 - 红色
"gitDecoration.renamedResourceForeground": "#ffb300", // 重命名 - 橙黄
"gitDecoration.untrackedResourceForeground": "#77460a", // 未跟踪 - 橘色
"gitDecoration.ignoredResourceForeground": "#757575", // 忽略 - 灰色
// === 错误与提示文字 ===
"list.errorForeground": "#f44336", // 错误提示
"list.warningForeground": "#ff9800", // 警告提示
"list.infoForeground": "#2196f3", // 信息提示
"list.deemphasizedForeground": "#888888", // 次要文字(非选中/非焦点)
// === 搜索过滤器相关 ===
"listFilterWidget.background": "#4caf50", // 搜索过滤器背景
"listFilterWidget.outline": "#4caf50", // 搜索过滤器边框
"listFilterWidget.noMatchesOutline": "#f44336", // 搜索无匹配时边框颜色
// === 编辑器组头(无标签时) ===
"editorGroupHeader.noTabsBackground": "#2b0d63" // 深紫,适配整体风格
},
"settingsSync.ignoredExtensions": [
"ms-vscode-remote.remote-ssh-edit"
],
"npm.scriptExplorerAction": "run",
"workbench.productIconTheme": "macos-modern",
"yaml.maxItemsComputed": 100000,
"search.followSymlinks": false,
"security.workspace.trust.untrustedFiles": "open",
"editor.unicodeHighlight.nonBasicASCII": false,
"github.copilot.nextEditSuggestions.enabled": true,
"[go]": {
"editor.defaultFormatter": "golang.go"
},
"[github-actions-workflow]": {
"editor.defaultFormatter": "bluebrown.yamlfmt"
},
"yaml.format.enable": true,
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
}
}