官方教程中文版产品入口
使用 App 命令
这篇整理 Codex App 中常用 commands、keyboard shortcuts、slash commands 和 deeplinks。
这篇整理 Codex App 中常用 commands、keyboard shortcuts、slash commands 和 deeplinks。
Keyboard shortcuts
| 分类 | Action | macOS shortcut |
|---|---|---|
| General | Command menu | Cmd+Shift+P 或 Cmd+K |
| General | Settings | Cmd+, |
| General | Open folder | Cmd+O |
| General | Navigate back | Cmd+[ |
| General | Navigate forward | Cmd+] |
| General | Increase font size | Cmd++ 或 Cmd+= |
| General | Decrease font size | Cmd+- 或 Cmd+_ |
| General | Toggle sidebar | Cmd+B |
| General | Toggle diff panel | Cmd+Option+B |
| General | Toggle terminal | Cmd+J |
| General | Clear the terminal | Ctrl+L |
| Thread | New thread | Cmd+N 或 Cmd+Shift+O |
| Thread | Find in thread | Cmd+F |
| Thread | Previous thread | Cmd+Shift+[ |
| Thread | Next thread | Cmd+Shift+] |
| Thread | Dictation | Ctrl+M |
斜杠命令
Slash commands 让你不离开 thread composer,就能控制 Codex。可用 commands 会随 environment 和 access 变化。
Use a slash command
使用方式:
- 在 thread composer 中输入
/。 - 从列表中选择 command,或者继续输入来过滤,例如
/status。
你也可以在 thread composer 中输入 $ 来显式调用 skills。详见 Skills。
Enabled skills 也会出现在 slash command list 中。
Available slash commands
| Slash command | Description |
|---|---|
/feedback | 打开 feedback dialog,用来提交 feedback,并可选包含 logs。 |
/mcp | 打开 MCP status,查看 connected servers。 |
/plan-mode | 为 multi-step planning 切换 plan mode。 |
/review | 启动 code review mode,用来 review uncommitted changes,或和 base branch 对比。 |
/status | 显示 thread ID、context usage 和 rate limits。 |
Deeplinks
Codex App 注册了 codex:// URL scheme,因此链接可以直接打开 App 的指定区域。
| Deeplink | Opens | Supported query parameters |
|---|---|---|
codex://settings | Settings | None |
codex://skills | Skills | None |
codex://automations | Inbox in automation create mode | None |
codex://threads/<thread-id> | A local thread。<thread-id> 必须是 UUID。 | None |
codex://new | A new thread | 可选:prompt、originUrl、path |
new-thread deeplinks 的参数规则:
| 参数 | 行为 |
|---|---|
prompt | 设置 initial composer text。 |
path | 必须是 local directory 的 absolute path;有效时,这个 directory 会成为 new thread 的 active workspace。 |
originUrl | 尝试通过 Git remote URL 匹配当前 workspace roots。path 和 originUrl 同时存在时,Codex 先解析 path。 |