我的 VS Code 配置清单

我的 VS Code 配置清单(2026-08-05)

2026 年 8 月 5 日由 GPT-5.6 Luna 整理,人工小幅修改;

设备和系统:MacBook Air M3,macOS Tahoe。

一、外观配置

配置项当前值作用
workbench.colorThemeAnthropic Light当前颜色主题
workbench.preferredLightColorThemeAnthropic Light浅色模式主题
workbench.preferredDarkColorThemeAnthropic Dark深色模式主题
window.autoDetectColorSchemetrue根据系统外观自动切换主题
editor.fontFamilySF Mono, Maple Mono NF CN, Menlo, Consolas, Maple UI, PingFang, 'Microsoft YaHei', monospace编辑器字体
editor.fontLigatures'calt', 'cv01', 'ss01', 'zero'启用字体连字和 OpenType 特性
editor.lineHeight2增大编辑器行距
workbench.fontAliasingantialiased使用抗锯齿字体渲染
editor.minimap.sizefit小地图按照内容适应
editor.minimap.sideleft小地图放在左侧

对应代码:

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 CNMaple UI 曾经在阮一峰老师的博客上被推荐过,下载后使用至今。

二、界面布局

配置项当前值作用
workbench.sideBar.locationright侧边栏放在右侧
workbench.panel.defaultLocationright面板默认放在右侧
workbench.secondarySideBar.defaultVisibilityhidden默认隐藏辅助侧边栏
workbench.editor.showTabsnone隐藏编辑器标签页
workbench.activityBar.locationtop活动栏放在顶部
workbench.activityBar.autoHidetrue自动隐藏活动栏
workbench.activityBar.compacttrue使用紧凑活动栏
workbench.statusBar.visiblefalse隐藏状态栏
window.commandCenterfalse隐藏顶部命令中心
workbench.browser.showInTitleBartrue在标题栏显示内置浏览器

对应代码:

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 + Qeditor.action.toggleWordWrap切换自动换行
Alt + 1workbench.action.toggleAuxiliaryBar切换辅助侧边栏
Alt + 2workbench.action.toggleSidebarVisibility显示或隐藏主侧边栏
Alt + Backquoteworkbench.action.maximizeAuxiliaryBar最大化辅助侧边栏
Alt + 3workbench.action.togglePanel显示或隐藏底部面板
Alt + Uworkbench.action.toggleStatusbarVisibility显示或隐藏状态栏
Alt + Mlatex-workshop.view打开 LaTeX Workshop 视图
Shift + Enterworkbench.action.terminal.sendSequence在终端发送反斜杠加换行
Ctrl + Enterworkbench.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.formatOnSavetrue保存时自动格式化
files.autoSaveafterDelay延迟自动保存
editor.inlineSuggest.enabledtrue启用行内补全
editor.accessibilitySupportoff关闭无障碍支持提示
editor.unicodeHighlight.nonBasicASCIIfalse不突出显示非基本 ASCII 字符
security.workspace.trust.untrustedFilesopen直接打开不受信任文件
explorer.confirmDeletefalse删除文件时不确认
explorer.confirmDragAndDropfalse拖放文件时不确认

对应代码:

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
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"latex-workshop.formatting.latex": "latexindent",
"latex-workshop.formatting.latexindent.args": [
"-"
],
"latex-workshop.latex.autoBuild.run": "onSave",
"latex-workshop.latex.autoClean.run": "onBuilt",
"latex-workshop.latex.recipe.default": "lastUsed",
"latex-workshop.view.pdf.viewer": "tab",
"latex-workshop.view.pdf.zoom": "page-width",
"latex-workshop.view.pdf.internal.synctex.keybinding": "double-click",

"[latex]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "James-Yu.latex-workshop"
},
"[tex]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "James-Yu.latex-workshop"
}
}

Markdown

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"markdown-preview-enhanced.enablePreviewZenMode": true,
"markdown-preview-enhanced.previewTheme": "atom-light.css",
"markdown-preview-enhanced.revealjsTheme": "beige.css",
"markdown-preview-enhanced.codeBlockTheme": "github.css",

"[markdown]": {
"editor.quickSuggestions": {
"comments": "on",
"strings": "on",
"other": "on"
}
}
}

其他语言

略。

六、AI 相关扩展

已安装的主要 AI 扩展:

扩展 ID备注
openai.chatgptCodex in VS Code
kilocode.kilo-code很好用,目前接入Opencode Go
pawelhuryn.grok-vscode-phurynGrok 社区插件
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
2
3
openai.chatgpt
kilocode.kilo-code
pawelhuryn.grok-vscode-phuryn

LaTeX、数学和知识管理

1
2
3
4
5
6
7
james-yu.latex-workshop
lydt.tsqx-compiler
orangex4.hsnips
supakornras.asymptote
tecosaur.latex-utilities
xing.zotero-cite
unicode-latex

实际扩展 ID 中,Unicode LaTeX 扩展是:

1
oijaz.unicode-latex

Markdown 与文档

1
2
bierner.markdown-mermaid
cweijan.vscode-office