How to indent lines now that tab means autocomplete?

dumb question: as cursor’s autocomplete gets faster, when i want to simply indent a line - i find myself racing against the clock to hit ‘tab’ before it can generate a suggestion .

is there a different way to just indent a line (the old school definition of ‘tab’)?

1 Like

We added a fix for this in version 0.26! Now, if it looks like you want to indent when you hit Tab, that will take precedence over the Copilot++ suggestion.

Let me know if anything is behaving in an unexpected way, and thanks for the feedback here.

2 Likes

Hi @truell20 !

I use multi-line Tab for indentation quite a lot in my daily work. Recently, I’ve noticed that the indentation fails because Cursor thinks that I want to do autocompletion. Is there a way to fix this, such as binding autocomplete to a different key?

1 Like

Tab is broken in cursor for me on Mac, paid version. Most of the time there are no visible suggestions, yet when I try and indent a line with tab, the line does not indent and the cursor jumps to the end of a line, a few lines down. I don’t want to disable autocomplete suggestions, I just want to be able to type. How about, as @richard suggested, a different key for accept?

I switched to using Cmd-[ and Cmd-] for multi-line indent and dedent. Probably Linux and Win have similar?

There is still something wrong with how cursor handles this though. If I make a change such that cursor suggests indenting the following block, the usual cursor indication of what it wants to do is not working correctly and all you see is things jumping around in a disconcerting way.

Tried to change the shortcut to accept suggestions, but it not work… :confused:

Cursor don’t indent correctly, the constant background color changes, text moving, indent changing while I’m working, the “stealing” of tab to accept suggestions… are very annoying

1 Like