Shift+Enter does not always insert new line at cursor location

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When using XML tags the editor gets confused about where to insert newlines with Shift+Enter.

This has been happening for some time (I reported this in the 1.7 chat thread), but I did not make the connection to XML tags. I started using XML a lot more after GPT-5 tips and tricks came out recommending this.

Secondary bug, likely not related: I have also noticed re-opening cursor often results in the current chat thread not allowing typing in the prompt. I have to close and reopen the past chat (new chat tabs always work).

Steps to Reproduce

Type XML tags, such as

<goal>
some text

Then click somewhere in the middle and Shift+Enter and the newline happens at the end, not at the cursor location.

If that doesn’t immediately work, try a closing tag and clicking around and trying it. Eventually it gets in a bad state and I have to cut, paste and start at end, or cut it all out to another text editor and paste in to continue in the middle, etc.

Expected Behavior

Shift+Enter should always insert a new line at the cursor location

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.25 (Universal)
VSCode Version: 1.99.3
Commit: 429604585b94ab2b96a4dabff4660f41d5b7fb80
Date: 2025-09-30T15:26:29.622Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

1 Like

I just found that in the same prompt in a bad state, pasting text also goes to the wrong place. I suspect the cursor location is not where it seems.

It seams typing a few characters may reset the cursor to the visible location and then work normally, but it can easily get in to a bad state again.

It just happened with no XML in sight. While I hope that might still help reproduce the bug, it is not the cause.

Hey, thanks for the report. Unfortunately, I can’t reproduce it. I tried for a long time following your steps. Could you let me know if this happens in a new chat prompt or in the second/third messages, and so on? Also, could you please record a short video of the behavior?

This is still happening in nearly 100% of my chat threads. I have not had a chance to try and reproduce it without any sensitive text to share, but I would think if you are working on a mac and in my version, you should end up with the same issue. Is this not the case? Is there any temp data I can clear that may be unique to my user setup here?

Note I have gotten used to typing an alpha-character and deleting it before doing work when it happens.

This shows that when I click to return focus to the agent prompt, the edit point for things like Shift+Enter and paste is not at the cursor, unless I type an alpha character first:

test-issue-shift-enter

It is not only Shift+Enter (as I mention above it affects keyboard paste too). Here I select some text and press delete (backspace on non-Macbooks?) and the selection is ignored completely:

test-issue-delete

…when this happens the only way to bulk-delete text is right-click cut.

It may be unrelated, but in notepads sometimes a list item gets stuck and can not be deleted. Lots of instability in these tools I use constantly all day.

Thanks for the extra info. We’ll check it.

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Guys, I’m paying $200+ a month for the privilege of using this AI and the IDE - PLEASE HIRE SOMEONE TO WORK ON THE UI IT HAS BEEN MONTHS

I literally have to open notepad to type things out to send to the agent and paste them in to the input window it’s so bad

Steps to Reproduce

Open an AI chat and try to select and then backspace your text; then try to shift+enter to put a newline behind some text.

Expected Behavior

I expect the input window for the cursor AI chat to function properly

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.40 (user setup)
VSCode Version: 1.99.3
Commit: df79b2380cd32922cad03529b0dc0c946c311850
Date: 2025-10-09T02:55:11.735Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.19045

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

My workaround may be buried above, so, for readers:

Type a letter and delete it. I am doing it constantly, but at least I can work; a then delete. Not ideal, obviously.

1 Like

I have not had this happen again after the last upgrade (or one of the last few). Currently on

Version: 1.7.52 (Universal)
VSCode Version: 1.99.3
Commit: 9675251a06b1314d50ff34b0cbe5109b78f848c0
Date: 2025-10-17T01:41:03.967Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0
1 Like

I am sorry to report it just happened again. Using:

Version: 1.7.52 (Universal)
VSCode Version: 1.99.3
Commit: 9675251a06b1314d50ff34b0cbe5109b78f848c0
Date: 2025-10-17T01:41:03.967Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

I am aware there is a new version. I will update soon and keep you in the loop.

This is still happening regularly. Multiple times per day. To be clear it is not just Shift+Enter….

  • Shift+Enter not happening at cursor location
  • Failure to cut or delete selected text
  • Paste goes to wrong location
  • Have to type an alpha character to get things to happen at the cursor location, but still doesn’t fix the delete bug
  • Sometimes @-complete doesn’t work, though this may mostly happen when there is no white-space to the right when starting @

It was happening in the notepads too, but that is gone now.

Currently using:

Version: 2.0.63 (Universal)
VSCode Version: 1.99.3
Commit: 505046dcfad2acda3d066e32b7cd8b6e2dc1fdc0
Date: 2025-11-05T18:56:58.213Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0

Within the last version or two, copy and paste stops working often as well.

Version: 2.0.64 (Universal)
VSCode Version: 1.99.3
Commit: 25412918da7e74b2686b25d62da1f01cfcd27680
Date: 2025-11-06T04:35:14.424Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The video does a better job at this.

Can’t delete highlighted text
New line acts weird

Steps to Reproduce

Open a chat, start typing. Press Shift + Cmd - does it start a new line?
Highlight some existing text, try to delete it, does it work?

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.54 (Universal)
VSCode Version: 1.99.3
Commit: 7a31bffd467aa2d9adfda69076eb924e9062cb20
Date: 2025-11-03T22:40:44.657Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.5.0

For AI issues: which model did you use?

This happens with any model

Does this stop you from using Cursor

No - Cursor works, but with this issue

Also an issue when pressing shift + enter to start a new line, chat history will snap to the bottom

I’ve been reporting this for some time. I hoped it would be fixed in v2 but it persists. I updated the thread there. It happens to me all day every day. I have to constantly type and remove a letter to force the cursor position to act as if it is at the cursor.

Recently in 2.0 copy and paste stops working often as well.

1 Like

Looking at these

1 Like

thanks!

Thank you!
And thank you @Guillaume_Caron for video evidence and confirmation I am not crazy :wink: