[FEATURE] Prefer plain text over image when pasting from rich text sources (e.g. Word, Excel)

Status Closed — not planned
Maintainer reply None cached
Activity 7 comments · opened Apr 7, 2026 · closed May 19, 2026

Preflight Checklist

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

Problem Statement

When copying text from Microsoft Word or Excel (macOS) and pasting into the Claude Code chat panel in VS Code, the content is always pasted as an image. Currently, ⌘⇧V (paste as plain text) does not work in the chat panel either.

Proposed Solution

Implement clipboard format detection that prefers text/plain over image when both representations are available. Ensure ⌘⇧V works in the chat panel as a paste-as-plain-text fallback.

Alternatively, a setting like claudeCode.pastePreference: "text" | "image" | "auto" would let users control this behavior.

Alternative Solutions

Tried:

  • ⌘⇧V (paste as plain text) – does not work in the chat panel, still pastes as image
  • VS Code setting editor.pasteAs.preferredType: "text" – has no effect on the chat panel (it's a webview, not a standard editor)
  • Pasting through an intermediary (e.g. TextEdit, browser address bar) – works, but defeats the purpose of a seamless workflow

Currently using:
There is no viable workaround. We either paste via an intermediary app or skip pasting altogether and ask Claude to fetch the file directly from SharePoint via MCP.

Priority

High - Significant impact on productivity

Feature Category

Interactive mode (TUI)

Use Case Example

Marketing and content teams frequently draft in Word/Google Docs, work with data from Excel, and paste excerpts into Claude Code for review, editing, or processing. The current behavior provides no way to paste as plain text – the chat input always interprets clipboard content from these sources as an image.

Additional Context

Environment

macOS (Darwin 24.6.0)
VS Code with Claude Code extension
Source: Microsoft Word (.docx)

<img width="458" height="137" alt="Image" src="https://github.com/user-attachments/assets/94bd4142-d6d7-4139-8686-2cbd48261a43" />

View original on GitHub ↗

6 Comments

github-actions[bot] · 4 months ago

Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/33577

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

ida-ozarowska · 4 months ago

Not a duplicate. #33577 is about supporting ⌘V for pasting images (screenshots). This issue is the opposite – when pasting from Word/Excel, the clipboard contains text that should be pasted as text, but the chat panel incorrectly interprets it as an image.

github-actions[bot] · 3 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

copilot-2025 · 3 months ago

+1. Still relevant.

I'm having to copy cells from Excel, paste them into notepad, copy them again from notepad, then finally they can be copied across into the Claude Code interface without being an attached png.

benbenz · 2 months ago

+1. Still relevant

IJS1016 · 2 months ago

+1. Still relevant

Showing cached comments. Read the full discussion on GitHub ↗