Use a different hotkey than TAB for AI code completion
With Rider 2025.1, with the new AI improvements, How do I make TAB just do intellisense completion and have a different key for when I want the AI completion (or just turn the ai completion all the way off and use the chat mode when I want it?).
It 100% breaks my flow when I press tab expecting a simple property completion, and then Rider jumps in and generates a whole bunch of stuff I didn't ask for or want. It's like constantly being interrupted with every expression I try to type. I HATE that.
Prior to this update, I had it working well - TAB was for intellisense, and I had configured shift + right arrow when I wanted the AI completion. But somehow that option went away, and it looks like my only option is to completely disable the AI plugin (and I'd like the chat/edit option — I keep switching to Cursor for that), in order to prevent this super-irritating behavior.
Please sign in to leave a comment.
In the meanwhile, I'm just gonna turn off the AI assistant all the way. I had hoped that the sidebar, in edit mode would work in much the way that Cursor works, where I can use it when I want something, and it would stay out of my way the rest of the time. Since this thing insists on interrupting me every time I press TAB, I'd rather just not have it at all.
I also find this extremely disruptive.
I've found that if you change/clear the Tab binding to the “Generate Code With AI Assistant” command, it solves the issue.
Freeman32 Thank you so much! I've spent ages searching for this. I'd tried turning off everything I could find in the settings around AI code completion but the thing still persisted.
It is possible to change the default key (
Tab) for AI Assistant code completion in Main Menu > Code > Code Completion > Insert Inline Proposal.It is possible to disable AI Assistant code completion in Settings (
⌘ + ,orCtrl + Alt + S) > Editor > General > Inline Completion > Enable cloud completion suggestions.By going to Main Menu > Code > Code Completion > Insert Inline Proposal I see it disabled
I like the assistant but this key map is breaking my flow continuously.
F###########!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :) Please fix. Disabling AI Assistant, not fun at all.
I use local models, and for line completion only. Sometimes suggestions/alternative approaches via chat, I have a small model for line completion, and it shouldn't take 30-60 seconds to suggest something, especially when I hit tab to auto complete intelisence LOL.
Yes, I logged in to just post my frustration because I'm using this flow interruption to annoy someone else to make me feel better lol. JK
Tanks “Freeman32” couldn't find this setting either LOL, simply searching was far easier, you saved some of my hair.
Keep up the good work, Jetbrain, but do fix the UX stuff with this new AI Feature. :)
davide lettieri
Sorry, to change the keyboard shortcut, you can go to Settings (
⌘ + ,orCtrl + Alt + S) > Keymap > Main Menu > Code > Code Completion > Insert Inline Proposal.Lagallardo5426
Could you please file a new bug report on our issue tracker: https://youtrack.jetbrains.com/newIssue?project=LLM, and share your IDE logs together with steps to reproduce the issue?
Thanks, Freeman32, you gave me the hint I needed.
I was after the reverse setting. I like having TAB complete the AI and to select from the popup intellisense menu with arrows/mouse. To accomplish this, I removed the binding for Editor Actions → Choose Lookup Item Replace.
I'm getting crazy, there is literally no way to prevent copilot from inserting suggestions after pressing TAB. I remapped all the keymaps with TAB, and still when I press TAB it fills with AI, ignoring the IntelliSense. It shouldn't be so hard, at least for a product I pay for every month.
What I remapped, among all, was:
- Generate Code With AI Assistant
- Insert Inline Proposal
- Copilot: Apply Completion to Editor
And none of these worked! I checked which actions are executed with TAB, and nothing appears! I'm going crazy
Hey all, several have posted instructions for changing this behavior in settings. I just want to follow up to say that doesn't seem to work. My experience has been that when you follow the advice from Ivan Pajic (see above), it decreases the number of times that it happens, but even with the option turned off, you'll occasionally be typing away, I'll hit tab, and then the IDE will seem to lock up. The editor will not accept any typing input for maybe 10 seconds or more, and then suddently, AI will code a book into my file! The only reliable way I've found to prevent this is to completely disable the plugin.
So nowadays, my ai assisted workflow has been to have Rider open in one monitor and Cursor open in the other. Completely disable the AI Plugin in rider, and use the cursor agent when I want AI to do something. That's been working, but it's clunky switching back and forth.
Hi all, created bug in tracker: https://youtrack.jetbrains.com/issue/LLM-18490/Cannot-prevent-AI-assitant-from-generating-code-on-Tab-press.
You can attach it to the bug directly so we can check it further.