Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Codex Range HelperNew to Visual Studio Code? Get it now.
Codex Range Helper

Codex Range Helper

UrsulaYZ

|
1 install
| (0) | Free
Generate file path and line range text from the current editor selection for Codex prompts.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Codex Range Helper

Generate relative/path:line or relative/path:start-end text from the current editor selection for Codex prompts.

Commands

  • Codex: Copy File Range
  • Codex: Insert File Range

Default keybinding

  • macOS: cmd+l
  • Windows/Linux: ctrl+l

This conflicts with common editor line-selection shortcuts. Change it in Keyboard Shortcuts if needed.

Output format

  • No selection: src/file.ts:42
  • Multi-line selection: src/file.ts:42-57

Local development

npm install
npm run build

Press F5 in VS Code to launch an Extension Development Host.

Publish checklist

  1. Replace your-publisher-id in package.json
  2. Replace placeholder homepage and repository values
  3. Create a VS Code Marketplace publisher
  4. Login and publish
npx @vscode/vsce login <publisher-id>
npx @vscode/vsce package
npx @vscode/vsce publish
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft