Can't copy and paste into chat or composer after recent update

I want to be able to paste code directly into the chat not as in a chat attachment I want to be able to copy the text from a bit of code and then change it in the chat or composer so I can instruct the ai how to do something better. But at the moment it’s just always pasting anything as an attachment. Makes the UI cleaner but completely destroys the utility

1 Like

It’s been like this for quite a while now, at least in my experience.

Personally, I want this “attachment” functionality most of the time, but not all of the time (e.g. like you say, when I want to edit the code).

My workaround has been:

  • Copy what I want from Cursor
  • Paste it into another document
  • Copy and paste it back into Cursor.

Not ideal, but workable. Especially considering that most of the time, I do want to paste it into the context as an attachment.

To the Cursor dev team: Apologies if this exists already: but I think the ideal experience would be:

  • When normal copy/pasting from Cursor into Chat/Composer, add to context as an attachment (as it does now)
  • Add a shortcut to allow the user to paste it into the Chat/Composer as plain text, not as an attachment. I think most intuitive would be Cmd/Ctrl + Shift + V (i.e. paste without formatting).

Hey, as @jake mentioned, you can paste the code as text instead of an attachment. Use the shortcut Cmd/Ctrl + Shift + V to paste it directly as text.

yeah this works, but i had clipclip (my copy paste management app) hotkeyed to that…just never had an issue with anything for years with it until cursor. oh well, new hotkey

Hey, as @jake mentioned, you can paste the code as text instead of an attachment. Use the shortcut Cmd/Ctrl + Shift + V to paste it directly as text.

Does that actually work @deanrie?

That was my desired functionality, although that’s not my experience when I use Cursor (it instead becomes an attachment).

Just tried it a couple times and it didn’t work. I’m on the latest version.

Yes, it works for me.

ScreenRecording2025-01-08-ezgif.com-optimize

Hm, it’s not working for me.

This is from my keybindings.json - is this incorrect?

    {
        "key": "cmd+shift+v",
        "command": "editor.action.clipboardPasteAction",
        "when": "editorTextFocus && !editorReadonly"
    },

Hey, this should work by default. Try removing your shortcut override.

Tried that, restarted the app, but it’s still not working.

If I copy anything from any file within Cursor, cmd+shift+v always pastes it as context.

Any idea why this might be happening?

Hmm, I’m not sure, I don’t have custom shortcuts or special software for this.

Really strange. I disabled all extensions, same issue.

Would you mind going to Keyboards shortcuts, searching for paste, and showing me the result? e.g. below.

It seems I have the same thing. What version of Cursor do you have?

1 Like

Version: 0.44.11
VSCode Version: 1.93.1
Commit: fe574d0820377383143b2ea26aa6ae28b3425220
Date: 2025-01-03T07:59:06.361Z
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.0.0