Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Code Location CopyNew to Visual Studio Code? Get it now.
Code Location Copy

Code Location Copy

Cassieye

|
1 install
| (0) | Free
Copy the current code selection location as a workspace-relative file path and line range.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Code Location Copy

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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft