CopilotForXcode icon indicating copy to clipboard operation
CopilotForXcode copied to clipboard

Please add key binding Accept Full Suggestion

Open mstroshin opened this issue 1 year ago • 3 comments

Hello! I can’t use the full suggestion feature because the Tab key binding doesn’t work for me. I assigned Cmd + Enter to ‘Accept Suggestion,’ but it doesn’t apply to the full suggestion. Could you add an ‘Accept Full Suggestion’ key binding to the settings?

mstroshin avatar Oct 30 '24 09:10 mstroshin

Hi @mstroshin, thanks for trying out GitHub Copilot for Xcode and providing feedback!

This is a great feature request, added to our roadmap 👍

Also to investigate why the Tab key accept isn't working for you, would you mind sharing your log when trying to press Tab to accept a suggestion? ~/Library/Logs/GitHubCopilot/github-copilot-for-xcode.log

devm33 avatar Nov 01 '24 02:11 devm33

Thank you for your quick response!

I tried using the Tab key again, and it worked. However, it’s strange because I had set the shortcut to Cmd + Enter (screenshot below).

Previously, I used to use another plugin, CopilotForXcode, and encountered the same issue with the Tab key.

I’ve attached the log file. github-copilot-for-xcode.log

CleanShot 2024-11-01 at 14 57 18@2x

mstroshin avatar Nov 01 '24 12:11 mstroshin

That's great news that it's working!

However, it’s strange because I had set the shortcut to Cmd + Enter (screenshot below).

The keybinding is Xcode is necessarily separate from using tab to accept since it needs to take place outside of Xcode. It can be enabled/disabled in the Copilot for Xcode settings:

Image

devm33 avatar Nov 01 '24 19:11 devm33