Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy Path with Line & CodeNew to Visual Studio Code? Get it now.
Copy Path with Line & Code

Copy Path with Line & Code

Yalniz

|
1 install
| (0) | Free
一键复制相对路径+行号,支持发送到终端(Claude Code / Gemini CLI 等)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Path with Line

在 VS Code 编辑器中复制当前文件的工作区相对路径和选区行号,也可连同代码一起复制、发送到终端或插入编辑器。

编辑器右键菜单中只显示一个 Copy Path with Line 入口,具体操作位于其二级菜单。

开发

npm install
npm run compile

在 VS Code 中按 F5 启动扩展开发宿主。

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