Copies the current selection as an AI-assistant-friendly path+line reference
(e.g. odoo/addons/crm_extension/models/crm_prospect_category.py#13-19),
so it can be pasted directly into tools like Claude Code or Codex.
Installed once, globally — works in every VS Code project, no per-repo setup.
Usage
Select a range of lines, or just place the cursor on a line (no selection
needed).
Run Copy AI Ref from the Command Palette (Ctrl+Shift+P →
"Copy AI Ref"), or use a keyboard shortcut (see below).
The reference is copied to the clipboard, and briefly echoed in the
status bar for confirmation.
Behavior:
No selection: uses the line the cursor is on.
Selection within/across lines: uses the selected line range.
No workspace open, or the file is outside any open workspace folder: the
file's absolute path is used instead of a relative one.
Examples (defaults)
Single line: odoo/addons/crm_extension/models/crm_prospect_category.py#13