CopilotForXcode icon indicating copy to clipboard operation
CopilotForXcode copied to clipboard

[Help Wanted]: Keyboard shortcuts no longer working from Xcode to Codeium.

Open bretlindquist opened this issue 2 years ago • 6 comments

Before Reporting

  • [X] I have checked FAQ, and there is no solution to my issue
  • [X] I have searched the existing issues, and there is no existing issue for my issue

Describe your issue

After installation everything was fine. I was able to set the key bindings in Xcode and use them as you would expect. I had set " Shift + Option + ] " or " Shift + } " initially to accept, as recommended and it worked well. Then for some reason, it just stopped working.
When it hit " Shift + Option + ] " now it produces a ’ instead of accepting. Right now Xcode seems to be the only app that returns alt codes when i use this button combination. Some setting in Xcode seems to have changed. Let me know if anyone else has experienced this or if you have any ideas. Thanks.

Update: I have tried to replace the keyboard layout as instructed below and it does not produce special characters anymore. However no binding I make in Xcode works for me anymore with Codeium.

https://stackoverflow.com/questions/11876485/how-to-disable-generating-special-characters-when-pressing-the-alta-optiona

bretlindquist avatar Feb 08 '24 14:02 bretlindquist

I have heard from others having the same issue. It could be a bug in Xcode. When the issue happens, can you still see the key combination noted next to the "Accept Suggestion" menu item? Is the menu item still clickable? Is there a key binding conflict?

All I can suggest now is to try other key bindings.

intitni avatar Feb 08 '24 15:02 intitni

I've tried countless other combinations of bindings, nothing seems to work. it does seem like a bug in Xcode. It's strange, because it did work when i initially set it up.

bretlindquist avatar Feb 08 '24 15:02 bretlindquist

There is another way to set up a keybinding for a menu item outside of Xcode. I think it's more reliable.

Screenshot 2024-02-08 at 23 24 42

intitni avatar Feb 08 '24 15:02 intitni

Okay, Now we may be at the heart of the issue. For some reason, I do not have Editor->Copilot in my menu in Xcode. Again strange because I see the dialogue and had it working at one point.

I am on Xcode 14.2 MacOS 12.7.3

bretlindquist avatar Feb 09 '24 14:02 bretlindquist

Please make sure that the Xcode source editor extension is enabled.

intitni avatar Feb 09 '24 14:02 intitni

That last suggestion combined with your other recommendation fixed it for me!

If Xcode Extensions are not in the system prefs extensions list, this worked for me: Rename Xcode to Xcode10, launch Xcode10 then quit. Rename Xcode10 back to Xcode.

Actually after step 1, "System Prefs - > Extensions" back to normal, but I just want the default app name back."

After that I still could not use the key bindings in Xcode, but setting the app shortcut bindings did work.

Thanks for your fast replies and spot on suggestions.

bretlindquist avatar Feb 10 '24 02:02 bretlindquist