使用这些 settings 来 customize Codex IDE extension。
更改 setting
要更改 setting,请按以下步骤操作:
打开你的 editor settings。
搜索 Codex 或 setting name。
更新 value。
Codex IDE extension 使用 Codex CLI。某些 behavior,例如 default model、approvals 和 sandbox settings,需要在 shared ~/.codex/config.toml file 中配置,而不是在 editor settings 中配置。参见 Config basics 。
该 extension 也会遵循 VS Code 内置的 chat font settings,用于 Codex conversation surfaces。
Settings reference
| Setting | Description |
|---|---|
| chat.fontSize | 控制 Codex sidebar 中的 chat text,包括 conversation content 和 composer。 |
| chat.editor.fontSize | 控制 Codex conversations 中以 code 形式 rendered 的内容,包括 code snippets 和 diffs。 |
| chatgpt.cliExecutable | 仅用于 development:Codex CLI executable 的 path。除非你正在 actively developing Codex CLI,否则不需要设置。如果手动设置,extension 的部分功能可能无法按预期工作。 |
| chatgpt.commentCodeLensEnabled | 在 to-do comments 上方显示 CodeLens,让你可以用 Codex 完成它们。 |
| chatgpt.localeOverride | Codex UI 的 preferred language。留空则自动 detect。 |
| chatgpt.openOnStartup | extension 完成启动后 focus Codex sidebar。 |
| chatgpt.runCodexInWindowsSubsystemForLinux | 仅 Windows:当 Windows Subsystem for Linux (WSL) 可用时,在 WSL 中运行 Codex。当你的 repositories 和 tooling 位于 WSL2 中,或你需要 Linux-native tooling 时使用。否则,Codex 可以通过 Windows sandbox 在 Windows 上 native 运行。更改此 setting 会 reload VS Code 以应用 change。 |