# IDE 设置参考

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

- 网址：https://funcoding.ai/agents/codex/platforms/ide-settings/
- 核实日期：2026-10-18（命令、配置和价格以官方文档为准）
- 官方来源：[Codex 官方文档：Developer settings](https://learn.chatgpt.com/docs/developer-settings?surface=ide)

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

## 打开正确的设置

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

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

## 发送与评审

| 键 | 默认值 | 行为 |
| --- | --- | --- |
| `chatgpt.followUpQueueMode` | `queue` | `queue` 排到下一次运行，`steer` 引导当前运行；旧值 `interrupt` 按 steer 处理 |
| `chatgpt.composerEnterBehavior` | `enter` | `enter` 直接发送；`cmdIfMultiline` 在多行输入时要求修饰键；`cmdAlways` 总是要求修饰键 |
| `chatgpt.reviewDelivery` | `inline` | 在当前聊天评审，或用 `detached` 开始单独评审聊天 |

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

## 显示与平台

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

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