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

**URL:** <https://forum.cursor.com/t/any-way-to-paste-code-as-text-instead-of-adding-at-the-top-as-a-part-of-file/5728>\
**Category:** Help\
**Created:** [June 12, 2024, 8:10am UTC](https://forum.cursor.com/t/any-way-to-paste-code-as-text-instead-of-adding-at-the-top-as-a-part-of-file/5728 "2024-06-12T08:10:36Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![MidnightOak](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/midnightoak/32/77882_2.png) [@MidnightOak](https://forum.cursor.com/u/MidnightOak)\
**Post date:** [October 25, 2025, 5:09am UTC](https://forum.cursor.com/t/any-way-to-paste-code-as-text-instead-of-adding-at-the-top-as-a-part-of-file/5728/25 "2025-10-25T05:09:52Z")

</div>

@fun_strange  
This has for the most part been resolved in v2.0.5:

> [@Add Pasted Code Segment File and Line Numbers In Prompt Message](https://forum.cursor.com/t/add-pasted-code-segment-file-and-line-numbers-in-prompt-message/134337/4):
>
> It looks like this has been sort of fixed in v2.0.5. Now there is no context bar at the top of chat. When copying pasting code it adds only the literal code. To add only the reference to the code, have to highlight code and press Ctrl+L or use the inline buttons. This works great because now the model is able to reference different parts of the code based on where they are presented in the request.

---

_[View the full topic](https://forum.cursor.com/t/any-way-to-paste-code-as-text-instead-of-adding-at-the-top-as-a-part-of-file/5728)._
