📚AI 编程官方教程中文版
📘 OpenAI Codex📚 官方教程中文版产品入口

使用 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(快捷键):

  1. 打开 Command Palette。macOS 用 Cmd+Shift+P,Windows / Linux 用 Ctrl+Shift+P
  2. 运行 Preferences: Open Keyboard Shortcuts
  3. 搜索 Codex 或 command ID,例如 chatgpt.newChat
  4. 选择 pencil icon(铅笔图标),输入你想绑定的快捷键。

扩展命令

CommandDefault key bindingDescription
chatgpt.addToThread-把 selected text range(选中文本范围)作为 context 加入当前 thread。
chatgpt.addFileToThread-把整个文件作为 context 加入当前 thread。
chatgpt.newChatmacOS: Cmd+N
Windows/Linux: Ctrl+N
创建一个 new thread(新线程)。
chatgpt.implementTodo-让 Codex 处理选中的待办注释。
chatgpt.newCodexPanel-创建一个新的 Codex panel(面板)。
chatgpt.openSidebar-打开 Codex sidebar panel(侧边栏面板)。

On this page