Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Codex PartnerNew to Visual Studio Code? Get it now.
Codex Partner

Codex Partner

OSpace-Dev

|
1 install
| (0) | Free
Generate workspace-relative file, directory, and line references for the official Codex VS Code extension.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Codex Partner

Codex Partner is a lightweight VS Code extension that turns workspace files, directories, and selected text into context references you can paste into the official Codex VS Code extension chat.

Features

  • Copy a selected file range from the editor context menu or Code Action; use Ctrl+Alt+C to add it to a visible prompt-notes draft.
  • Copy a file or directory reference from the Explorer context menu.
  • Search workspace files and directories from one Quick Pick, with recently used references shown first.
  • Open the dedicated Codex Partner Activity Bar view to keep local prompt notes without creating or sending a Codex conversation.
  • Resize the prompt composer from its top edge and open Codex Partner keyboard shortcut settings directly from the panel.
  • Keep copied references workspace-relative. The extension never copies selected source text or reads Codex credentials.
  • Follow the VS Code display language across commands and the prompt-notes panel: English is the default, with Simplified Chinese available for zh-cn.

Reference format

【File `src/extension.js`, lines 12-15】
【File `README.md`】
【Directory `src/components`】

When VS Code is set to Simplified Chinese, the copied reference uses the corresponding Chinese labels:

【文件 `src/extension.js`,第 12-15 行】
【文件 `README.md`】
【目录 `src/components`】

Usage

  1. Select text in an editor, then choose Copy Codex file line reference from the lightbulb or context menu.
  2. Right-click a file or directory in the Explorer and choose the matching copy command.
  3. Run Codex Partner: Search and copy reference to find a file, directory, or parent path.
  4. Click the Codex Partner Activity Bar icon to open the local prompt-notes panel.
  5. Paste copied references or saved notes into the official Codex extension chat when needed.

Keyboard shortcuts

  • Ctrl+Alt+C: Add a file and line reference to the visible Codex Partner draft; copy it when the panel is closed.
  • Ctrl+Alt+F: Copy a reference for the current file when there is no selection.
  • Ctrl+Alt+R: Search workspace files or directories and copy the selected reference.

Search for Codex Partner in Keyboard Shortcuts to change or disable the default shortcuts.

中文说明

Codex Partner 是一个轻量 VS Code 扩展,可将工作区文件、目录和选中文本转换为可粘贴到官方 Codex VS Code 扩展聊天框的上下文引用。面板可见时,选中代码后按 Ctrl+Alt+C 可将文件行号引用追加到输入草稿;面板未打开时仍复制到剪贴板。

扩展提供独立的 Activity Bar 入口和本地内容记录面板,可保存、复制和删除准备发送给 Codex 的内容,但不会自动创建会话或发送消息。扩展默认使用英文界面;当 VS Code 显示语言为简体中文(zh-cn)时,命令、通知、搜索界面、内容记录面板和生成的引用会使用中文。功能范围和快捷键与英文界面一致。

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft