# Bug Report: Code Pasting Issue in Cursor

**URL:** <https://forum.cursor.com/t/bug-report-code-pasting-issue-in-cursor/47767>\
**Category:** Bug Reports\
**Created:** [February 4, 2025, 3:34pm UTC](https://forum.cursor.com/t/bug-report-code-pasting-issue-in-cursor/47767 "2025-02-04T15:34:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lhm7877](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/lhm7877/32/24260_2.png) [@lhm7877](https://forum.cursor.com/u/lhm7877)\
**Post date:** [February 4, 2025, 3:34pm UTC](https://forum.cursor.com/t/bug-report-code-pasting-issue-in-cursor/47767/1 "2025-02-04T15:34:06Z")

</div>

When copying and pasting code in the Cursor editor, instead of adding the file along with the line reference in the right chat panel, the code is pasted as plain text.

**Steps to Reproduce**

1. Open a file in the Cursor editor.

2. Select and copy a block of code.

3. Paste the copied code into the right-side chat panel.

4. Observe that the pasted content appears as plain text instead of referencing the file and line number.

**Expected Behavior**

The pasted code should appear in the chat panel with the correct file reference and line number.

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/2/2/22a455f11f3abed9a5186ddc5316dcce59bb7867.png)

version: 0.45.9  
commit: 1.96.2  
date: cce0110ca40ceb61e76ecea08d24210123895320  
Electron: 2025-02-02T06:44:49.761Z (2 일 전)  
ElectronBuildId: 32.2.6  
Chromium: undefined  
Node.js: 128.0.6613.186  
V8: 20.18.1  
OS: 12.8.374.38-electron.0

✅ **Check the forum** to ensure the issue hasn’t been reported already  
🐞 Provide a **clear description** of the bug  
🔄 Explain how to **reproduce the bug** (if known)  
📷 Attach **screenshots or recordings** (e.g., `.jpg`, `.png`, `.mp4`).  
💻 Tell us your operating system and your **Cursor version** (e.g., `Windows, 0.x.x`).  
🚫 Tell us if the issue stops you from using Cursor.

---

<div class="post-metadata">

**Author:** ![lhm7877](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/lhm7877/32/24260_2.png) [@lhm7877](https://forum.cursor.com/u/lhm7877)\
**Post date:** [February 4, 2025, 3:34pm UTC](https://forum.cursor.com/t/bug-report-code-pasting-issue-in-cursor/47767/2 "2025-02-04T15:34:39Z")

</div>

![image](https://us1.discourse-cdn.com/cursor1/original/3X/5/6/56d29cdb1978f534629ce4c3eed87ae45d9563b1.png)

---

<div class="post-metadata">

**Author:** ![cagrisarigoz](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/cagrisarigoz/32/24483_2.png) [@cagrisarigoz](https://forum.cursor.com/u/cagrisarigoz)\
**Post date:** [February 5, 2025, 8:22am UTC](https://forum.cursor.com/t/bug-report-code-pasting-issue-in-cursor/47767/3 "2025-02-05T08:22:44Z")

</div>

I have the same issue, and it’s really annoying. If I add the file reference manually, the composer adds the whole file to the context window, and it becomes a large context window immediately at the first message sent to the composer.

Version: 0.45.6  
VSCode Version: 1.96.2  
Commit: 2a665be30468694ca6fd7a317310ea33eef25430  
Date: 2025-01-30T02:36:18.698Z (6 days ago)  
Electron: 32.2.6  
Chromium: 128.0.6613.186  
Node.js: 20.18.1  
V8: 12.8.374.38-electron.0  
OS: Darwin arm64 24.2.0

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [February 8, 2025, 8:57pm UTC](https://forum.cursor.com/t/bug-report-code-pasting-issue-in-cursor/47767/4 "2025-02-08T20:57:22Z")

</div>

Hey, what happens if you select the code, and then hit CMD+I, does that resolve it?
