官方教程中文版产品入口
使用 IDE 命令
IDE extension commands 可以让你从 VS Code Command Palette(命令面板)控制 Codex。你也可以把这些 comma
IDE extension commands 可以让你从 VS Code Command Palette(命令面板)控制 Codex。你也可以把这些 commands 绑定成 keyboard shortcuts(快捷键)。
分配快捷键
给 Codex command 分配或修改 key binding(快捷键):
- 打开 Command Palette。macOS 用 Cmd+Shift+P,Windows / Linux 用 Ctrl+Shift+P。
- 运行 Preferences: Open Keyboard Shortcuts。
- 搜索
Codex或 command ID,例如chatgpt.newChat。 - 选择 pencil icon(铅笔图标),输入你想绑定的快捷键。
扩展命令
| Command | Default key binding | Description |
|---|---|---|
chatgpt.addToThread | - | 把 selected text range(选中文本范围)作为 context 加入当前 thread。 |
chatgpt.addFileToThread | - | 把整个文件作为 context 加入当前 thread。 |
chatgpt.newChat | macOS: Cmd+NWindows/Linux: Ctrl+N | 创建一个 new thread(新线程)。 |
chatgpt.implementTodo | - | 让 Codex 处理选中的待办注释。 |
chatgpt.newCodexPanel | - | 创建一个新的 Codex panel(面板)。 |
chatgpt.openSidebar | - | 打开 Codex sidebar panel(侧边栏面板)。 |