Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Quick PathNew to Visual Studio Code? Get it now.
Quick Path

Quick Path

Kk

| (0) | Free
Quickly copy file path with line numbers for sharing with coding agents
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Code Path

一键复制代码路径+行号,方便粘贴给 coding agent 使用。

功能

命令 快捷键 输出示例
Copy File Path 右键菜单 src/utils/parser.ts
Copy File Path with Line Ctrl+Shift+C src/utils/parser.ts:42(单行)
src/utils/parser.ts:42-58(多行选区)

使用方式

  1. 快捷键:Ctrl+Shift+C(Mac: Cmd+Shift+C)

    • 无选区 → 复制 文件路径:当前行号
    • 有选区 → 复制 文件路径:起始行-结束行
  2. 右键菜单:编辑器中右键,选择 Copy File Path 或 Copy File Path with Line

  3. 命令面板:Ctrl+Shift+P 搜索 "Copy File Path"

为什么需要这个插件

和 coding agent(Kimi Code、Claude Code、Cursor 等)沟通时,直接告诉它代码在哪:

帮我看一下 src/utils/parser.ts:42-58 这段逻辑有没有问题

比说"看看那个解析配置的函数"精准得多,agent 可以直接定位,省去搜索步骤。

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft