Skip to content

Commit 6434575

Browse files
authored
Update README.md
1 parent 52ef2be commit 6434575

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

README.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ Copilot for Xcode is an Xcode Source Editor Extension that provides GitHub Copil
2323
- [Install](#install)
2424
- [Enable the Extension](#enable-the-extension)
2525
- [Granting Permissions to the App](#granting-permissions-to-the-app)
26+
- [Setting Up Key Bindings](#setting-up-key-bindings)
2627
- [Setting Up GitHub Copilot](#setting-up-github-copilot)
2728
- [Setting Up Codeium](#setting-up-codeium)
2829
- [Setting Up OpenAI API Key](#setting-up-openai-api-key)
2930
- [Managing `CopilotForXcodeExtensionService.app`](#managing-copilotforxcodeextensionserviceapp)
3031
- [Update](#update)
3132
- [Feature](#feature)
32-
- [Key Bindings](#key-bindings)
3333
- [Plus Features](#plus-features)
3434
- [Limitations](#limitations)
3535
- [License](#license)
@@ -97,6 +97,28 @@ Alternatively, you may manually grant the required permissions by navigating to
9797

9898
If you encounter an alert requesting permission that you have previously granted, please remove the permission from the list and add it again to re-grant the necessary permissions.
9999

100+
### Setting Up Key Bindings
101+
102+
The extension will work better if you use key bindings.
103+
104+
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`. You can filter the list by typing `copilot` in the search bar.
105+
106+
A [recommended setup](https://github.com/intitni/CopilotForXcode/issues/14) that should cause no conflict is
107+
108+
| Command | Key Binding |
109+
| ------------------- | ----------- |
110+
| Get Suggestions | `⌥?` |
111+
| Accept Suggestions | `⌥}` |
112+
| Reject Suggestion | `⌥{` |
113+
| Next Suggestion | `⌥>` |
114+
| Previous Suggestion | `⌥<` |
115+
| Open Chat | `⌥"` |
116+
| Explain Selection | `⌥\|` |
117+
118+
Essentially using `⌥⇧` as the "access" key combination for all bindings.
119+
120+
Another convenient method to access commands is by using the `⇧⌘/` shortcut to search for a command in the menu bar.
121+
100122
### Setting Up GitHub Copilot
101123

102124
1. In the host app, switch to the service tab and click on GitHub Copilot to access your GitHub Copilot account settings.
@@ -281,26 +303,6 @@ For Send Message, Single Round Dialog and Custom Chat commands, you can use the
281303
| `{{active_editor_file_url}}` | The URL of the active file in the editor. |
282304
| `{{active_editor_file_name}}` | The name of the active file in the editor. |
283305

284-
## Key Bindings
285-
286-
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`. You can filter the list by typing `copilot` in the search bar.
287-
288-
A [recommended setup](https://github.com/intitni/CopilotForXcode/issues/14) that should cause no conflict is
289-
290-
| Command | Key Binding |
291-
| ------------------- | ----------- |
292-
| Get Suggestions | `⌥?` |
293-
| Accept Suggestions | `⌥}` |
294-
| Reject Suggestion | `⌥{` |
295-
| Next Suggestion | `⌥>` |
296-
| Previous Suggestion | `⌥<` |
297-
| Open Chat | `⌥"` |
298-
| Explain Selection | `⌥\|` |
299-
300-
Essentially using `⌥⇧` as the "access" key combination for all bindings.
301-
302-
Another convenient method to access commands is by using the `⇧⌘/` shortcut to search for a command in the menu bar.
303-
304306
## Plus Features
305307

306308
The pre-built binary contains a set of exclusive features that can only be accessed with a Plus license key. To obtain a license key, please visit [this link](https://intii.lemonsqueezy.com/checkout/buy/298a8d4c-11fb-4ecd-b328-049589645449).

0 commit comments

Comments
 (0)