我的 VS Code 配置清单
我的 VS Code 配置清单(2026-08-05)
2026 年 8 月 5 日由 GPT-5.6 Luna 整理,人工小幅修改;
设备和系统:MacBook Air M3,macOS Tahoe。
一、外观配置
| 配置项 | 当前值 | 作用 |
|---|---|---|
workbench.colorTheme | Anthropic Light | 当前颜色主题 |
workbench.preferredLightColorTheme | Anthropic Light | 浅色模式主题 |
workbench.preferredDarkColorTheme | Anthropic Dark | 深色模式主题 |
window.autoDetectColorScheme | true | 根据系统外观自动切换主题 |
editor.fontFamily | SF Mono, Maple Mono NF CN, Menlo, Consolas, Maple UI, PingFang, 'Microsoft YaHei', monospace | 编辑器字体 |
editor.fontLigatures | 'calt', 'cv01', 'ss01', 'zero' | 启用字体连字和 OpenType 特性 |
editor.lineHeight | 2 | 增大编辑器行距 |
workbench.fontAliasing | antialiased | 使用抗锯齿字体渲染 |
editor.minimap.size | fit | 小地图按照内容适应 |
editor.minimap.side | left | 小地图放在左侧 |
对应代码:1
2
3
4
5
6
7
8
9
10
11
12
13
14{
"workbench.colorTheme": "Anthropic Light",
"workbench.preferredLightColorTheme": "Anthropic Light",
"workbench.preferredDarkColorTheme": "Anthropic Dark",
"window.autoDetectColorScheme": true,
"editor.fontFamily": "SF Mono, Maple Mono NF CN, Menlo, Consolas, Maple UI, PingFang, 'Microsoft YaHei', monospace",
"editor.fontLigatures": "'calt', 'cv01', 'ss01', 'zero'",
"editor.lineHeight": 2,
"workbench.fontAliasing": "antialiased",
"editor.minimap.size": "fit",
"editor.minimap.side": "left"
}
Maple Mono NF CN 和 Maple UI 曾经在阮一峰老师的博客上被推荐过,下载后使用至今。
二、界面布局
| 配置项 | 当前值 | 作用 |
|---|---|---|
workbench.sideBar.location | right | 侧边栏放在右侧 |
workbench.panel.defaultLocation | right | 面板默认放在右侧 |
workbench.secondarySideBar.defaultVisibility | hidden | 默认隐藏辅助侧边栏 |
workbench.editor.showTabs | none | 隐藏编辑器标签页 |
workbench.activityBar.location | top | 活动栏放在顶部 |
workbench.activityBar.autoHide | true | 自动隐藏活动栏 |
workbench.activityBar.compact | true | 使用紧凑活动栏 |
workbench.statusBar.visible | false | 隐藏状态栏 |
window.commandCenter | false | 隐藏顶部命令中心 |
workbench.browser.showInTitleBar | true | 在标题栏显示内置浏览器 |
对应代码:1
2
3
4
5
6
7
8
9
10
11
12
13
14
15{
"workbench.sideBar.location": "right",
"workbench.panel.defaultLocation": "right",
"workbench.secondarySideBar.defaultVisibility": "hidden",
"workbench.editor.showTabs": "none",
"workbench.activityBar.location": "top",
"workbench.activityBar.autoHide": true,
"workbench.activityBar.compact": true,
"workbench.statusBar.visible": false,
"window.commandCenter": false,
"workbench.browser.showInTitleBar": true
}
三、快捷键对照
| 快捷键 | 命令 | 作用 |
|---|---|---|
Alt + Q | editor.action.toggleWordWrap | 切换自动换行 |
Alt + 1 | workbench.action.toggleAuxiliaryBar | 切换辅助侧边栏 |
Alt + 2 | workbench.action.toggleSidebarVisibility | 显示或隐藏主侧边栏 |
Alt + Backquote | workbench.action.maximizeAuxiliaryBar | 最大化辅助侧边栏 |
Alt + 3 | workbench.action.togglePanel | 显示或隐藏底部面板 |
Alt + U | workbench.action.toggleStatusbarVisibility | 显示或隐藏状态栏 |
Alt + M | latex-workshop.view | 打开 LaTeX Workshop 视图 |
Shift + Enter | workbench.action.terminal.sendSequence | 在终端发送反斜杠加换行 |
Ctrl + Enter | workbench.action.terminal.sendSequence | 在终端发送反斜杠加换行 |
代码中的快捷键: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[
{
"key": "alt+q",
"command": "editor.action.toggleWordWrap"
},
{
"key": "alt+1",
"command": "workbench.action.toggleAuxiliaryBar"
},
{
"key": "alt+2",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "alt+[Backquote]",
"command": "workbench.action.maximizeAuxiliaryBar"
},
{
"key": "alt+3",
"command": "workbench.action.togglePanel"
},
{
"key": "alt+u",
"command": "workbench.action.toggleStatusbarVisibility",
"when": "!isSessionsWindow"
}
]
LaTeX Workshop 快捷键:1
2
3
4
5{
"key": "alt+m",
"command": "latex-workshop.view",
"when": "!virtualWorkspace"
}
终端快捷键:1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18[
{
"key": "shift+enter",
"command": "workbench.action.terminal.sendSequence",
"when": "terminalFocus",
"args": {
"text": "\\\r\n"
}
},
{
"key": "ctrl+enter",
"command": "workbench.action.terminal.sendSequence",
"when": "terminalFocus",
"args": {
"text": "\\\r\n"
}
}
]
四、编辑器行为
| 配置项 | 当前值 | 作用 |
|---|---|---|
editor.formatOnSave | true | 保存时自动格式化 |
files.autoSave | afterDelay | 延迟自动保存 |
editor.inlineSuggest.enabled | true | 启用行内补全 |
editor.accessibilitySupport | off | 关闭无障碍支持提示 |
editor.unicodeHighlight.nonBasicASCII | false | 不突出显示非基本 ASCII 字符 |
security.workspace.trust.untrustedFiles | open | 直接打开不受信任文件 |
explorer.confirmDelete | false | 删除文件时不确认 |
explorer.confirmDragAndDrop | false | 拖放文件时不确认 |
对应代码:1
2
3
4
5
6
7
8
9
10
11
12{
"editor.formatOnSave": true,
"files.autoSave": "afterDelay",
"editor.inlineSuggest.enabled": true,
"editor.accessibilitySupport": "off",
"editor.unicodeHighlight.nonBasicASCII": false,
"security.workspace.trust.untrustedFiles": "open",
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false
}
五、不同语言的配置
LaTeX
1 | { |
Markdown
1 | { |
其他语言
略。
六、AI 相关扩展
已安装的主要 AI 扩展:
| 扩展 ID | 备注 |
|---|---|
openai.chatgpt | Codex in VS Code |
kilocode.kilo-code | 很好用,目前接入Opencode Go |
pawelhuryn.grok-vscode-phuryn | Grok 社区插件 |
github.copilot 相关配置 | GitHub Copilot 配置项 |
相关配置:1
2
3
4
5
6
7
8
9{
"editor.inlineSuggest.enabled": true,
"github.copilot.nextEditSuggestions.enabled": true,
"chat.agent.thinkingStyle": "collapsed",
"chat.viewSessions.orientation": "stacked",
"chat.titleBar.openInAgentsWindow.enabled": false,
"chatgpt.localeOverride": "en-US",
"chatgpt.followUpQueueMode": "queue"
}
Kilo Code 的界面和自动化偏好:1
2
3
4
5
6
7
8
9{
"kilo-code.new.agentWorkStyle": "autonomous",
"kilo-code.new.showTaskTimeline": false,
"kilo-code.new.attention.enabled": true,
"kilo-code.new.autocomplete.enableAutoTrigger": false,
"kilo-code.new.autocomplete.enableSmartInlineTaskKeybinding": true,
"kilo-code.new.autocomplete.enableChatAutocomplete": false,
"kilo-code.new.showTokenThroughput": true
}
注意这里我手动关闭了自带的 Copilot AI 功能:1
"chat.disableAIFeatures": true
七、扩展清单(部分)
AI 与编程辅助
1 | openai.chatgpt |
LaTeX、数学和知识管理
1 | james-yu.latex-workshop |
实际扩展 ID 中,Unicode LaTeX 扩展是:1
oijaz.unicode-latex
Markdown 与文档
1 | bierner.markdown-mermaid |