﻿---
title: "IDE 的 chatgpt.* 不要写进 config.toml"
summary: "队列还是转向、审查内联还是另开聊天、要不要走 WSL，都在编辑器设置里。agent 模型/沙箱/MCP 才进 ~/.codex。"
category: config
level: intermediate
surfaces: [ide, app]
tags: ["IDE", "chatgpt.*", "WSL"]
canonical: /tips/ide-chatgpt-settings/
---

# IDE 的 chatgpt.* 不要写进 config.toml

队列还是转向、审查内联还是另开聊天、要不要走 WSL，都在编辑器设置里。agent 模型/沙箱/MCP 才进 ~/.codex。

在 VS Code 里搜 `@ext:openai.chatgpt`。这些键属于扩展，不属于 `config.toml`：

| 键 | 作用 |
| --- | --- |
| `chatgpt.followUpQueueMode` | `queue` 等下一轮；`steer` 注入当前轮。旧值 `interrupt` 当 `steer`。一次反过来：Cmd/Ctrl+Shift+Enter |
| `chatgpt.reviewDelivery` | `inline` 尽量在当前聊天跑 `/review`；`detached` 另开审查聊天 |
| `chatgpt.composerEnterBehavior` | Enter 发送，或必须 Cmd/Ctrl+Enter |
| `chatgpt.runCodexInWindowsSubsystemForLinux` | 仓库在 WSL2 时打开；改完会重载窗口 |
| `chatgpt.commentCodeLensEnabled` | TODO 上方的 CodeLens |

桌面应用和 IDE 对着同一项目时会共享活动聊天和编辑器上下文。合成器里的 IDE context 可关，避免把当前打开的文件塞进桌面提示。

`chatgpt.cliExecutable` 只给开发 CLI 用，乱改会让扩展的一部分失灵。字体用 VS Code 自带的 `chat.fontSize` / `chat.editor.fontSize`。

## 来源

- [OpenAI · Developer settings](https://learn.chatgpt.com/docs/developer-settings)
