Any way to paste code as text, instead of adding at the top as a part of file?

Let’s say I need to add a small piece of code from a file, but when I paste it in the chat, it pastes it as a read-only block with the file name attached at the top. So I cannot edit it, and I cannot explain to the AI which block of code I want to edit, because it all gets pasted at the top, instead of under my explanation paragraphs.

Hello, could I please receive an answer?
This causes problems with explaining the AI what to do, as the code is pasted out of context.

same question , paste as a file ai does not pick up and solve the problem,very annoying

Hi @fun_strange and @xzkeee ,

I experience the same behaviour and the devs are aware of the dynamic.

It seems to happen only when the code being pasted in the prompt area is over a particular size.

Here’s a screenshot I have taken previously:

Hopefully it will be resolved in a future release.

I am sure the current behaviour has some reason for existing, but it does make it a bit inconvenient when you want to paste in some code at a particular place in your prompt, and then it gets hoicked up to the context area.

2 Likes