复制用户选中文本的行列位置信息,供 AI 使用

Developer a23e200afb refactor: split command registration for single and multi selection 1 kuukausi sitten
dist a23e200afb refactor: split command registration for single and multi selection 1 kuukausi sitten
src a23e200afb refactor: split command registration for single and multi selection 1 kuukausi sitten
.gitignore 80d37e19d0 chore: ignore vsix packages in gitignore 1 kuukausi sitten
.vscodeignore 7e7870734d feat: add project scaffold 1 kuukausi sitten
CHANGELOG.md 3146b230ae docs: add README and CHANGELOG 1 kuukausi sitten
README.md a23e200afb refactor: split command registration for single and multi selection 1 kuukausi sitten
esbuild.js 7e7870734d feat: add project scaffold 1 kuukausi sitten
package-lock.json a23e200afb refactor: split command registration for single and multi selection 1 kuukausi sitten
package.json a23e200afb refactor: split command registration for single and multi selection 1 kuukausi sitten
tsconfig.json 7e7870734d feat: add project scaffold 1 kuukausi sitten

README.md

Copy AI Context

A VS Code extension to copy file/folder paths formatted for AI assistants (Claude, ChatGPT, pi agent, etc.).

Features

  • Copy Selection — 编辑器右键(有选中代码时),复制引用头 [path LnCn-LnCn]
  • Copy Active File — 编辑器右键(无选中代码时),复制路径 [path]
  • Copy Single Item — 资源管理器右键单文件/单文件夹,复制路径
  • Copy Multi Items — 资源管理器右键多选(文件/文件夹),批量复制路径(文件夹递归展开)

Output Format

[src/file.ts L10C1-L25C30]

多文件

[src/file1.ts][src/file2.ts]

Requirements

  • VS Code 1.85+

Development

npm install
npm run build

Press F5 in VS Code to launch a development extension host.