Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ai-copy-helpNew to Visual Studio Code? Get it now.
ai-copy-help

ai-copy-help

刘欣洋

|
2 installs
| (0) | Free
Copy file path with selected line range, such as /path/file.ts#L10-20.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Code Reference

This VS Code extension copies the current file path with selected line range.

Example output:

/Users/liuxinyang/code/fe-edh-chat-bi-platform/src/views/chat/Home.vue#L56-58

Usage

  1. Select code in the editor.
  2. Press shortcut:
    • macOS: cmd+ctrl+c
    • Windows/Linux: ctrl+alt+c
  3. Paste anywhere with your normal paste shortcut.

Command

  • Copy Code Reference (Path + Lines)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft