claude-code - 💡(How to fix) Fix [FEATURE] Smart paste: convert clipboard code to file reference chips (like Cursor)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Pasting copied code dumps the raw text inline into the chat input. There is no visual indication of which file or line range it came from.

Desired behavior

Copy code from an editor file → paste into Claude Code chat → shows a chip/pill like src/components/Button.tsx:L12-L45 instead of raw code Clicking the chip shows the code preview Support pasting multiple file snippets in a single message, each rendered as its own chip The chip should carry the file path + line range so Claude receives structured context (not just raw text)

Proposed Solution

When pasting code that was copied from a file open in the editor, Claude Code should detect the source and convert it into a file reference chip (e.g., filename.ts:L1-L65) instead of inlining the raw code into the chat input.

Alternative Solutions

No response

Priority

Critical - Blocking my work

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING