主导航

Codex IDE 扩展命令

Codex IDE 扩展命令和键盘快捷键参考

使用这些命令可以通过 VS Code 命令面板控制 Codex。你也可以将它们绑定到键盘快捷键上。

分配键位绑定

要为 Codex 命令分配或更改键位绑定:

  1. 打开命令面板(macOS 为 Cmd+Shift+P,Windows/Linux 为 Ctrl+Shift+P)。
  2. 运行 Preferences: Open Keyboard Shortcuts(首选项:打开键盘快捷方式)。
  3. 搜索 Codex 或命令 ID(例如 chatgpt.newChat)。
  4. 选择铅笔图标,然后输入你想要的快捷键。

扩展命令

命令默认键位绑定描述
chatgpt.addToThread-将选中的文本范围添加为当前会话的上下文
chatgpt.addFileToThread-将整个文件添加为当前会话的上下文
chatgpt.newChatmacOS: Cmd+N
Windows/Linux: Ctrl+N
创建一个新会话
chatgpt.implementTodo-请求 Codex 处理选中的 TODO 注释
chatgpt.newCodexPanel-创建一个新的 Codex 面板
chatgpt.openSidebar-打开 Codex 侧边栏面板
© . This website operates independently and is not affiliated with or endorsed by OpenAI, Inc. All brand names, logos, and trademarks are the property of their respective owners.