VS Code Extensions
Code Location Copy

Code Location Copy

by Cassieye-azuretools

Copy the current code selection location as a workspace-relative file path and line range.

Downloads

2

Rating

— (0)

Version

0.0.1

Last updated

Aug 05, 2026

Copy the current VS Code selection location in this format:

{relativePath}:{startLine}-{endLine}

For example:

src/components/Button.tsx:18-32

Usage

  1. Open a folder or workspace in VS Code.
  2. Select a range of code.
  3. Press Ctrl+Alt+C (Cmd+Alt+C on macOS).
  4. 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.

Related extensions