Copy the current VS Code selection location in this format:
{relativePath}:{startLine}-{endLine}
For example:
src/components/Button.tsx:18-32
Usage
- Open a folder or workspace in VS Code.
- Select a range of code.
- Press
Ctrl+Alt+C(Cmd+Alt+Con macOS). - Paste the copied location into Codex.
If there is no selection, the current cursor line is copied.
Development
npm install
npm run compile
Open this folder in VS Code and press F5 to launch an Extension Development Host.