Direct Code Snippet Copy to Chat

Current Behavior

When selecting code in the editor and attempting to paste it into chat, Cursor pastes a reference to the file rather than the actual text content. This becomes particularly problematic when the referenced file is in the .cursorignore file, as Cursor cannot recognize the pasted code reference.

Current Workaround

Currently, I need to:

  1. Copy the code from the editor
  2. Paste it into another text field
  3. Make a small edit (add a space or character)
  4. Copy it again
  5. Finally paste it into Cursor chat

Requested Feature

Implement a modifier key option (e.g., Shift+Copy or Alt+Copy) that allows copying the raw text content instead of a file reference when copying from the editor to paste into chat. This would maintain the current reference behavior by default while providing a direct way to copy actual code text when needed.

Benefits

  • Eliminates tedious multi-step workaround
  • Improves workflow efficiency
  • Solves compatibility issues with .cursorignore files
  • Maintains existing functionality while adding an alternative option

Note: On Windows CTRL + Shift + V is NOT working.

Just checked, it works :upside_down_face:

Is there a setting for that which I accidentally enabled? For me it is not working, it just creates the pill at the top. And what did you exactly checked? Did you try to copy a single line or multi line?

Opened a rules file, copied some lines, pasted as normal into chat, got the snippet attachment and no text. Shift Paste enters the text as expected.

I don’t know if this is version specific or if anything changed, I mainly switched to Linux now due to poor tooling (Agent kept trying bash commands before going into powershell gymnastics)

■■■■, this is weird. Yes, I had the same bash thing going on.

Oh nevermind. CTRL + ALT + Shift + V works.