Copy selected code (or current line) with full file path and line numbers to clipboard — one shortcut, ready for AI prompts, code review, bug reports, and documentation.
一键复制选中代码(或当前行),带上完整文件路径和行号到剪贴板 —— 用于 AI 提示词、代码审查、Bug 报告和文档。
Search Copy with File & Line in VS Code / Cursor extension marketplace 在 VS Code / Cursor 扩展市场搜索 Copy with File & Line
Or install via VSIX: code --install-extension copy-with-file-line-1.2.0.vsix 或直接安装 VSIX
Release Notes / 更新日志
1.5.0
Swapped keybindings: Shift+Cmd+C now copies path + line only (common case), Ctrl+Cmd+Shift+C for code included / 交换快捷键:Shift+Cmd+C 仅复制路径+行号,Ctrl+Cmd+Shift+C 复制源代码
1.2.0
Enhanced notification with file path, line range and character count / 增强通知:显示路径、行号范围和字符数
New app icon with cleaner design / 全新应用图标,简洁大气
1.1.0
Auto-copy current line when no text is selected / 无选区时自动复制整行
Clipboard verification with popup notification / 剪贴板校验并弹窗提示