Search code examples
macosrider

Lost keyboard shortcut [Cmd]+Right Arrow in Rider?


I have suddenly lost the ability to [CMD]+Right Arrow to move the cursor to the end of the line in Rider. This issue only affects Rider - FireFox, Outlook, Slack, etc. all behave as expected when using [CMD]+Right Arrow.

Only two things changed with my Rider environment today: I installed the latest GitHub CoPilot plugin, and my laptop lagged out for 5-10 seconds and I typed [CMD]+Right Arrow a few times before I realized what was happening (maybe I found a really bad Konami code?). I did update to the latest Rider version after the fact trying to debug the issue but no effect.

Additional details:

  • [CMD]+Left Arrow (move to start of line) still works
  • [OPT}+Right Arrow (move to next word) still works
  • Right Arrow does like its supposed to, moves one char at a time
  • [Shift]+Right Arrow does like it is supposed to (selects everything from current location to end of line)
  • The issue is persistent on both my Moonlander keyboard and the laptop's built-in keyboard
  • I have opened multiple solutions and they all behave the same. So the issue doesn't seem to be related to a corrupt .idea folder
  • I tried invalidating caches and even rebooted my laptop to no effect
  • I reset my keymap settings to a few different formats (VSCode -> Visual Studio -> VSCode) hoping that I'd overwrite whatever was borked also to no avail.

Can anyone suggest other ideas? Apparently I use this keystroke a lot and I feel like I've lost a limb or something. :(


Solution

  • This appears to happen to do Copilot also setting a keymap for the same shortcut.

    • In Rider settings navigate to the Keymap section.
    • Find the Keymap named "Copilot: Apply Next Word of Completion to Editor"
    • Remove the cmd -> shortcut (optionally assign a new shortcut for the setting)

    This should allow you to use cmd -> to move the caret to the end of a line again.