Skip to content
FunCoding

Search

Search docs, Skills and MCP

IDE 设置参考

查询 VS Code 兼容扩展的发送行为、评审位置、语言、字体和 WSL 设置。

This page has not been translated into English yet. The original Chinese version is shown below.

Codex IDE 扩展有两层设置:config.toml 决定智能体行为,编辑器里的 chatgpt.* 决定扩展交互。把某层的键写到另一层不会达到预期效果。

打开正确的设置

侧栏齿轮 → Codex Settings,可调整模型、推理强度、权限、沙箱和 MCP;Open config.toml 打开当前配置文件。

要改扩展行为,打开编辑器设置,搜索 @ext:openai.chatgpt、Codex 或具体键名。

发送与评审

键默认值行为
chatgpt.followUpQueueModequeuequeue 排到下一次运行,steer 引导当前运行;旧值 interrupt 按 steer 处理
chatgpt.composerEnterBehaviorenterenter 直接发送;cmdIfMultiline 在多行输入时要求修饰键;cmdAlways 总是要求修饰键
chatgpt.reviewDeliveryinline在当前聊天评审,或用 detached 开始单独评审聊天

Cmd/Ctrl+Shift+Enter 可临时反转一次 follow-up 的排队或引导行为。发送修饰键在 macOS 是 Cmd,其余支持平台使用 Ctrl。

显示与平台

键默认值用途
chatgpt.commentCodeLensEnabledtrue在 TODO 注释上显示 CodeLens
chatgpt.openOnStartupfalse扩展启动后聚焦侧栏
chatgpt.localeOverride自动指定 Codex UI 语言,留空则自动检测
chatgpt.runCodexInWindowsSubsystemForLinuxfalseWindows 中通过 WSL 运行;更改会重新加载 VS Code
chatgpt.cliExecutable未设置开发扩展或 CLI 时覆盖可执行文件;普通使用不需要
chat.fontSize编辑器默认控制聊天正文和输入框字号
chat.editor.fontSize编辑器默认控制代码片段和 diff 字号

手动指定 chatgpt.cliExecutable 可能破坏扩展部分功能。仓库和工具在 WSL2 中时才按实际工作环境选择 WSL 设置。