When the editor has multiple selections (“multi-cursor mode”), tab autocomplete gets in the way and usually doesn’t work as expected. When a user creates multiple cursors, they likely want to do something specific and precise. In my case, I frequently want to indent multiple lines with tab.
It seems not to be possible to re-bind the “cursor autocomplete” action from “tab” (see this issue) so there’s really no way to do multi-selection indentation without disabling cursor autocomplete.
My preferred solution would be an option to disable cursor tab autocomplete when the editor has multiple selections/cursors.
Note that this issue is very hard to Google because it involves multiple cursors for the cursor IDE and even the best search is just never going to surface the right thing.
I opened this similar issue a few months ago but I am re-posting in an attempt to make this issue more Google-able for the above reason.
1 Like
Good idea, I was a heavy user of multi-cursor from VS Code days and I missed my main shortcut Cmd+Shift+L and slowly offloaded to Cursor Tab most of the heavy work, but when I try to do it exactly like you said, it’s cumbersome.
and either disabling it or having the preference to choose, would save some tokens from the tab processing as well, really smart idea !
+1
1 Like
+100
I ran into the same issue this morning. Was trying to use multi-cursor to build a switch case block from a bunch of values I had pasted. As soon as I had multiple lines selected, cursor suggestions popped up, i went through a couple of attempts including:
- accepting the completion - and it auto-completed with absolute garbage (wrong purpose, wrong syntax, lost data, etc)
- pressing escape to dismiss the completion – it dismissed both the completion and my multi-cursor selection
- changing my keyboard shortcut bindings. I changed all mentions of tab to “shift+tab” (except for the “tab” action).
- when I pressed tab, the cursor suggestion was accepted again!!! wtf
Thats when I searched and ended up here.
I created an account just to bump this feature request.
- Please provide an option to disable suggestions in mutli-cursor mode.
- Please fix the ability to change accepting suggestions to another keybinding other than TAB.
1 Like
I bound “Disable Cursor Tab” to ^ [
(ctrl+[
) and “Enable Cursor Tab” to ^ ]
(ctrl+]
) and when I use multiple cursors I usually quickly disable it, do my thing, and then enable it.
I agree it’s outrageous that Tab cannot be unbound from “accept completion” - that is a totally unserious aspect of Cursor and at odds with every other aspect of IDE design in history. As for automatically disabling autocomplete when multiple cursors are present - that would be a great feature IMO and it sounds like others agree.
Thanks for the comment @jeremygiberson !
1 Like
Thanks for sharing your workaround with the keybindings! We’ve heard the feedback about Tab behavior with multiple cursors and the team agrees - Tab shouldn’t attempt suggestions when using multiple cursors. We’re looking into implementing this change
In the meantime, you can toggle Cursor Tab on/off from the status bar icon in the bottom right as mentioned in our docs which might be a bit quicker than using keybindings
1 Like
@danperks thanks for the response! I will closely monitor this.
Fwiw I believe the inability to rebind Tab is the worst aspect of the ux issue. Can you confirm that there is no way to unbind tab from cursor autocomplete? It interferes with intellisense suggestions and generally IMO should be rebindable.
Hey, we should be making this an option in our next release hopefully, I hear you that Tab is an already essential key, and some users like yourself don’t want us to override it!