Cursor Tab suggestions being accepted without pressing Tab

Sometimes when I’m just navigating around the code, Cursor Tab suggestions get inserted despite not pressing the tab key. Has anyone else experienced this and is there a way to prevent it?

It usually happens when I’m moving fast and I don’t usually notice Cursor has made a change right away, so I’m having trouble determining if there’s something specific triggering it.

Hi @mckeed

This has happened a few times for some users. Please monitor it—you might find the cause. Let us know if you spot anything since I can’t reproduce it on my end.

I figured out the issue. I had enabled the “partial accepts” feature and added a keybinding for inlineSuggest.acceptNextWord, but I had not replaced the original binding for that, which is cmd+right. That is also the default for “move to the end of the line” on macOS.

To make matters worse, I have a key macro that does right, cmd+right to move to the end of the line or to the next line if already at the end. I’m using it constantly when navigating around code. Apparently in Cursor when you do a partial accept but your cursor is not at the beginning of the suggestion it accepts the full suggestion instead of the next part. That could be considered a bug – partial accept should maybe not work on non-local suggesions at all because of the potential for this kind of confusion.

I haven’t had the issue since disabling the cmd+right keybinding.

cc: @deanrie

1 Like