Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Send @ ReferenceNew to Visual Studio Code? Get it now.
Send @ Reference

Send @ Reference

manooog

|
1 install
| (0) | Free
Copy @file:line-range references and paste images to terminal
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Code Reference

VS Code extension to copy @file:line-range references and paste image paths in terminal.

Commands

Copy Code Reference

  1. Select code (or place cursor on a line)
  2. Press Alt+3
  3. Paste anywhere — reference is in clipboard

Format:

  • @src/utils.ts:10-25 — multi-line selection
  • @src/utils.ts:10 — single line or cursor
  • Absolute path fallback when no workspace is open

Paste Image Reference

Paste a clipboard image as a file path reference into the active terminal. Only available in WSL Remote environments.

  1. Copy an image to clipboard
  2. Focus the terminal where you want to paste
  3. Press Alt+4

The image will be saved to a temporary file and its path (e.g., @/tmp/image_xxx.png) will be sent to the terminal.

Note: If Alt+4 does not respond when the terminal is focused, you need to manually add the following to your settings.json:

{
  "terminal.integrated.commandsToSkipShell": [
    "copyCodeReference.pasteImage"
  ]
}

If you already have other commands in commandsToSkipShell, append copyCodeReference.pasteImage to the existing array instead of replacing it.

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