Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy Extra By QingHao PlusNew to Visual Studio Code? Get it now.
Copy Extra By QingHao Plus

Copy Extra By QingHao Plus

gdnwxf

| (0) | Free
Copy selected code in VS Code with file paths, line ranges, and line numbers.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Extra By QingHao for VS Code

VS Code extension that ports the editor copy behaviors from the IntelliJ plugin:

  • Copy selected code with line numbers and full path
  • Copy selected code with line numbers and relative path
  • Copy only file path and selected line range
  • Copy the touched full lines with File: ...:start-end 行 header
  • Default shortcut aligned with the original plugin: Ctrl+Shift+C / Cmd+Shift+C

Menu

In the editor context menu, the commands are grouped under a top-level submenu:

  • Copy Extra

Commands

  • Copy Relative Path Line Range Only
  • Copy Full Path and Line Range Only
  • Copy Relative Path Line Range Selected
  • Copy Relative Path Line Numbers Selected
  • Copy Full Path Line Range Selected
  • Copy Full Path Line Numbers Selected
  • Copy Relative Path Line Range
  • Copy Relative Path Line Numbers
  • Copy Full Path Line Range
  • Copy Full Path Line Numbers

Shortcut

  • Ctrl+Shift+C on Windows/Linux
  • Cmd+Shift+C on macOS

This shortcut runs Copy Full Path Line Range Selected.

Install

Install the packaged extension from:

  • copy-extra-by-qinghao-0.0.1.vsix

In VS Code:

  1. Open Extensions
  2. Click ...
  3. Select Install from VSIX...
  4. Choose the .vsix file
  5. Reload VS Code

Command line:

code --install-extension /Users/wch/opensource/CopyWithLineNumbersExtraVSCode/copy-extra-by-qinghao-0.0.1.vsix

Development

npm install
npm run build

Press F5 in VS Code to launch an Extension Development Host.

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