Skip to content

Commit e8e79ce

Browse files
committed
Merge branch 'add-key-binding-recommendation'
2 parents aae5c82 + 5a9ddb8 commit e8e79ce

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,22 @@ If you want to keep track of the new releases, you can watch this repo's release
7171

7272
Hope that next year, Apple can spend some time on Xcode Extensions.
7373

74+
## Key Bindings
75+
76+
It looks like there is no way to add default key bindings to commands, but you can set them up in `Xcode settings > Key Bindings`.
77+
78+
A [recommended setup](https://github.com/intitni/CopilotForXcode/issues/14) that should cause no conflict is
79+
80+
| Command | Key Binding |
81+
| --- | --- |
82+
| Get Suggestions | `⌥?` |
83+
| Accept Suggestions | `⌥}` |
84+
| Reject Suggestion | `⌥{` |
85+
| Next Suggestion | `⌥>` |
86+
| Previous Suggestion | `⌥<` |
87+
88+
Essentially using `⌥⇧` as the "access" key combination for all bindings.
89+
7490
## Prevent Suggestions Being Committed
7591

7692
Since the suggestions are presented as comments, they are in your code. If you are not careful enough, they can be committed to your git repo. To avoid that, I would recommend adding a pre-commit git hook to prevent this from happening.

0 commit comments

Comments
 (0)