📘 OpenAI Codex📚 官方教程中文版产品入口
使用 IDE 斜杠命令
Slash commands 可以让你不离开 chat input(聊天输入框)就控制 Codex。它们适合查看状态、在 local 和 cloud mode
Slash commands 可以让你不离开 chat input(聊天输入框)就控制 Codex。它们适合查看状态、在 local 和 cloud mode 之间切换,或提交 feedback(反馈)。
Use a slash command
- 在 Codex chat input 中输入
/。 - 从列表中选择 command,或继续输入过滤,例如
/status。 - 按 Enter。
Available slash commands
| Slash command | Description |
|---|---|
/auto-context | 打开或关闭 Auto Context,让 Codex 自动包含 recent files(最近文件)和 IDE context。 |
/cloud | 切换到 cloud mode,在远端运行任务。需要 cloud access。 |
/cloud-environment | 选择要使用的 cloud environment。只在 cloud mode 中可用。 |
/feedback | 打开 feedback dialog,提交反馈,并可选择包含 logs。 |
/local | 切换到 local mode,在当前 workspace 中运行任务。 |
/review | 开始 code review mode,review uncommitted changes,或与 base branch 比较。 |
/status | 显示 thread ID、context usage 和 rate limits。 |