Skip to content

Commit e67baa0

Browse files
authored
Improve and reformat README.md for clarity, accessibility, and user guidance
This update enhances the README.md file to provide a clearer and more helpful onboarding experience for users of GitHub Copilot for X code. Key improvements include: - Fixed minor typos and ensured consistent branding (e.g., "GitHub Copilot" spelling). - Added a detailed Table of Contents for easier navigation. - Improved section organization and used proper Markdown formatting for headings, code blocks, images, and tables. - Enhanced accessibility with more descriptive image alt texts. - Added a Quick Start section for experienced users. - Expanded troubleshooting guidance and summarized keyboard shortcuts in a dedicated table. - Clarified installation and setup steps using continuous numbering and concise instructions. - Added notes and tips for important steps, such as permissions and Xcode settings. - Provided links for support, privacy policy, and acknowledgements. These updates make the README more accessible, visually appealing, and informative for both new and existing users.
1 parent 77b2c02 commit e67baa0

File tree

1 file changed

+149
-95
lines changed

1 file changed

+149
-95
lines changed

README.md

Lines changed: 149 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,148 +1,202 @@
11
# <img align="center" height="70" src="./Docs/AppIcon.png"/> GitHub Copilot for Xcode
22

3-
[GitHub Copilot](https://github.com/features/copilot) is an AI pair programmer
4-
tool that helps you write code faster and smarter. Copilot for Xcode is an Xcode extension that provides inline coding suggestions as you type and a chat assistant to answer your coding questions.
3+
[GitHub Copilot](https://github.com/features/copilot) is an AI pair programmer that helps you write code faster and smarter. Copilot for Xcode is an Xcode extension that provides inline coding suggestions as you type and a chat assistant to answer your coding questions.
54

6-
## Chat
5+
---
76

8-
GitHub Copilot Chat provides suggestions to your specific coding tasks via chat.
9-
<img alt="Chat of GitHub Copilot for Xcode" src="./Docs/chat_dark.gif" width="800" />
7+
## Table of Contents
108

11-
## Code Completion
9+
- [Features](#features)
10+
- [Requirements](#requirements)
11+
- [Quick Start](#quick-start)
12+
- [Getting Started](#getting-started)
13+
- [How to Use Chat](#how-to-use-chat)
14+
- [How to Use Code Completion](#how-to-use-code-completion)
15+
- [Keyboard Shortcuts](#keyboard-shortcuts)
16+
- [Troubleshooting](#troubleshooting)
17+
- [License](#license)
18+
- [Privacy](#privacy)
19+
- [Support](#support)
20+
- [Acknowledgements](#acknowledgements)
1221

13-
You can receive auto-complete type suggestions from GitHub Copilot either by starting to write the code you want to use, or by writing a natural language comment describing what you want the code to do.
14-
<img alt="Code Completion of GitHub Copilot for Xcode" src="./Docs/demo.gif" width="800" />
22+
---
23+
24+
## Features
25+
26+
### Chat
27+
GitHub Copilot Chat provides suggestions for your specific coding tasks via a conversational interface.
28+
29+
![Animated screenshot showing Copilot Chat in Xcode](./Docs/chat_dark.gif)
30+
31+
### Code Completion
32+
Receive AI-powered auto-complete suggestions from GitHub Copilot by starting to write code or by describing your intent in a natural language comment.
33+
34+
![Animated screenshot showing code completion suggestions](./Docs/demo.gif)
35+
36+
---
1537

1638
## Requirements
1739

18-
- macOS 12+
19-
- Xcode 8+
20-
- A GitHub Copilot subscription. To learn more, visit [https://github.com/features/copilot](https://github.com/features/copilot).
40+
- macOS 12 or higher
41+
- Xcode 8 or higher
42+
- A [GitHub Copilot subscription](https://github.com/features/copilot)
43+
44+
---
45+
46+
## Quick Start
47+
48+
1. **Install via Homebrew:**
49+
```sh
50+
brew install --cask github-copilot-for-xcode
51+
```
52+
*Or* download the `.dmg` from the [latest release](https://github.com/github/CopilotForXcode/releases/latest/download/GitHubCopilotForXcode.dmg) and drag **GitHub Copilot for Xcode** into your **Applications** folder.
53+
54+
2. **Open the app** and accept any security warnings.
55+
56+
3. **Grant permissions** (Background, Accessibility, and Xcode Source Editor Extension) when prompted.
57+
58+
4. **Enable the extension** in System Preferences > Extensions > Xcode Source Editor.
59+
60+
5. **Open Xcode** and verify the **GitHub Copilot** menu under the Xcode **Editor** menu.
61+
62+
6. **Sign in to GitHub Copilot** via the app settings.
63+
64+
---
2165

2266
## Getting Started
2367

24-
1. Install via [Homebrew](https://brew.sh/):
68+
### 1. Installation
69+
70+
- Install via [Homebrew](https://brew.sh/), or
71+
- Download the `.dmg` from [the latest release](https://github.com/github/CopilotForXcode/releases/latest/download/GitHubCopilotForXcode.dmg) and drag it into your Applications folder.
72+
73+
![Screenshot: Opened dmg](./Docs/dmg-open.png)
74+
75+
- Updates can be downloaded and installed by the app.
76+
77+
### 2. Running the Application
78+
79+
- Open **GitHub Copilot for Xcode** from Applications.
80+
- Accept the security warning.
81+
![Screenshot: macOS download permission request](./Docs/macos-download-open-confirm.png)
82+
83+
- A background item will be added automatically.
84+
![Screenshot: Background item](./Docs/background-item.png)
2585

26-
```sh
27-
brew install --cask github-copilot-for-xcode
28-
```
86+
### 3. Permissions
2987

30-
Or download the `dmg` from
31-
[the latest release](https://github.com/github/CopilotForXcode/releases/latest/download/GitHubCopilotForXcode.dmg).
32-
Drag `GitHub Copilot for Xcode` into the `Applications` folder:
88+
- **Three permissions** are required: Background, Accessibility, and Xcode Source Editor Extension.
89+
- The first time the app runs, you will be prompted for Accessibility permission:
90+
![Screenshot: Accessibility permission request](./Docs/accessibility-permission-request.png)
3391

34-
<p align="center">
35-
<img alt="Screenshot of opened dmg" src="./Docs/dmg-open.png" width="512" />
36-
</p>
92+
- Enable the Xcode Source Editor Extension manually:
93+
- Click **Extension Permission** from the app settings.
94+
- Go to System Preferences > Extensions > Xcode Source Editor, and enable **GitHub Copilot**.
95+
![Screenshot: Extension permission](./Docs/extension-permission.png)
3796

38-
Updates can be downloaded and installed by the app.
97+
### 4. Enabling in Xcode
3998

40-
1. Open the `GitHub Copilot for Xcode` application (from the `Applications` folder). Accept the security warning.
41-
<p align="center">
42-
<img alt="Screenshot of MacOS download permission request" src="./Docs/macos-download-open-confirm.png" width="350" />
43-
</p>
99+
- Open Xcode and make sure the **GitHub Copilot** menu is available and enabled under the Xcode **Editor** menu.
100+
![Screenshot: Xcode Editor GitHub Copilot menu item](./Docs/xcode-menu.png)
44101

102+
- Keyboard shortcuts can be set for all menu items in Xcode preferences under **Key Bindings**.
45103

46-
1. A background item will be added to enable the GitHub Copilot for Xcode extension app to connect to the host app. This permission is usually automatically added when first launching the app.
47-
<p align="center">
48-
<img alt="Screenshot of background item" src="./Docs/background-item.png" width="370" />
49-
</p>
104+
### 5. Signing In
50105

51-
1. Three permissions are required for GitHub Copilot for Xcode to function properly: `Background`, `Accessibility`, and `Xcode Source Editor Extension`. For more details on why these permissions are required see [TROUBLESHOOTING.md](./TROUBLESHOOTING.md).
106+
- Click **Sign in** in the app settings.
107+
- A browser window will open and a code will be copied to your clipboard. Paste the code into the GitHub login page.
108+
![Screenshot: Sign-in popup](./Docs/device-code.png)
52109

53-
The first time the application is run the `Accessibility` permission should be requested:
110+
### 6. Updating
54111

55-
<p align="center">
56-
<img alt="Screenshot of accessibility permission request" src="./Docs/accessibility-permission-request.png" width="529" />
57-
</p>
112+
- To install updates, click **Check for Updates** in the menu or app settings.
113+
- After updating, restart Xcode for the changes to take effect.
114+
- New versions can also be installed via `.dmg` from the releases page.
58115

59-
The `Xcode Source Editor Extension` permission needs to be enabled manually. Click
60-
`Extension Permission` from the `GitHub Copilot for Xcode` application settings to open the
61-
System Preferences to the `Extensions` panel. Select `Xcode Source Editor`
62-
and enable `GitHub Copilot`:
116+
### 7. Xcode Preferences
63117

64-
<p align="center">
65-
<img alt="Screenshot of extension permission" src="./Docs/extension-permission.png" width="582" />
66-
</p>
118+
> **Note:** To avoid conflicts, disable **Predictive code completion**:
119+
> Xcode > Preferences > Text Editing > Editing
67120

68-
1. After granting the extension permission, open Xcode. Verify that the
69-
`Github Copilot` menu is available and enabled under the Xcode `Editor`
70-
menu.
71-
<br>
72-
<p align="center">
73-
<img alt="Screenshot of Xcode Editor GitHub Copilot menu item" src="./Docs/xcode-menu.png" width="648" />
74-
</p>
121+
### 8. Using Suggestions
75122

76-
Keyboard shortcuts can be set for all menu items in the `Key Bindings`
77-
section of Xcode preferences.
123+
- Press `Tab` to accept the first line of a suggestion.
124+
- Hold `Option` to view the full suggestion.
125+
- Press `Option + Tab` to accept the full suggestion.
126+
![Screenshot: Welcome screen](./Docs/welcome.png)
78127

79-
1. To sign into GitHub Copilot, click the `Sign in` button in the settings application. This will open a browser window and copy a code to the clipboard. Paste the code into the GitHub login page and authorize the application.
80-
<p align="center">
81-
<img alt="Screenshot of sign-in popup" src="./Docs/device-code.png" width="372" />
82-
</p>
128+
---
83129

84-
1. To install updates, click `Check for Updates` from the menu item or in the
85-
settings application.
130+
## How to Use Chat
86131

87-
After installing a new version, Xcode must be restarted to use the new
88-
version correctly.
132+
- Open Copilot Chat in Xcode via:
133+
- **Xcode → Editor → GitHub Copilot → Open Chat**
134+
![Screenshot: Xcode Editor GitHub Copilot menu item](./Docs/xcode-menu_dark.png)
135+
- Or via the **GitHub Copilot app menu → Open Chat**
136+
![Screenshot: GitHub Copilot menu item](./Docs/copilot-menu_dark.png)
89137

90-
New versions can also be installed from `dmg` files downloaded from the
91-
releases page. When installing a new version via `dmg`, the application must
92-
be run manually the first time to accept the downloaded from the internet
93-
warning.
138+
---
94139

95-
1. To avoid confusion, we recommend disabling `Predictive code completion` under
96-
`Xcode` > `Preferences` > `Text Editing` > `Editing`.
140+
## How to Use Code Completion
97141

98-
1. Press `tab` to accept the first line of a suggestion, hold `option` to view
99-
the full suggestion, and press `option` + `tab` to accept the full suggestion.
142+
- Press `Tab` to accept the first line of a suggestion.
143+
- Hold `Option` to view the full suggestion.
144+
- Press `Option + Tab` to accept the full suggestion.
100145

101-
<p align="center">
102-
<img alt="Screenshot of welcome screen" src="./Docs/welcome.png" width="450" />
103-
</p>
146+
---
104147

105-
## How to use Chat
148+
## Keyboard Shortcuts
106149

107-
Open Copilot Chat in GitHub Copilot.
108-
- Open via the Xcode menu `Xcode -> Editor -> GitHub Copilot -> Open Chat`.
109-
<p align="center">
110-
<img alt="Screenshot of Xcode Editor GitHub Copilot menu item" src="./Docs/xcode-menu_dark.png" width="648" />
111-
</p>
150+
| Action | Shortcut |
151+
|-------------------------------------- |--------------------|
152+
| Accept first line of suggestion | `Tab` |
153+
| View full suggestion | `Option` |
154+
| Accept full suggestion | `Option + Tab` |
155+
| Open Copilot Chat | Customize in Xcode |
112156

113-
- Open via GitHub Copilot app menu `Open Chat`.
157+
Set your own shortcuts in **Xcode > Preferences > Key Bindings**.
114158

115-
<p align="center">
116-
<img alt="Screenshot of GitHub Copilot menu item" src="./Docs/copilot-menu_dark.png" width="244" />
117-
</p>
159+
---
118160

119-
## How to use Code Completion
161+
## Troubleshooting
120162

121-
Press `tab` to accept the first line of a suggestion, hold `option` to view
122-
the full suggestion, and press `option` + `tab` to accept the full suggestion.
163+
- **Copilot menu not showing in Xcode?**
164+
- Make sure the Source Editor Extension is enabled in System Preferences > Extensions.
165+
- Restart Xcode after enabling the extension.
166+
167+
- **Permission issues?**
168+
- Confirm that Accessibility and Background permissions are enabled in System Preferences.
169+
170+
- **Problems signing in?**
171+
- Ensure you’re using the latest version of the app.
172+
- Try re-signing in via the app settings.
173+
174+
For more help, visit our [Feedback forum](https://github.com/orgs/community/discussions/categories/copilot).
175+
176+
---
123177

124178
## License
125179

126-
This project is licensed under the terms of the MIT open source license. Please
127-
refer to [LICENSE.txt](./LICENSE.txt) for the full terms.
180+
This project is licensed under the MIT open source license. See [LICENSE.txt](./LICENSE.txt) for details.
181+
182+
---
128183

129184
## Privacy
130185

131-
We follow responsible practices in accordance with our
132-
[Privacy Statement](https://docs.github.com/en/site-policy/privacy-policies/github-privacy-statement).
186+
We follow responsible practices in accordance with our [Privacy Statement](https://docs.github.com/en/site-policy/privacy-policies/github-privacy-statement).
187+
188+
To get the latest security fixes, please use the latest version of GitHub Copilot for Xcode.
133189

134-
To get the latest security fixes, please use the latest version of the GitHub
135-
Copilot for Xcode.
190+
---
136191

137192
## Support
138193

139-
We’d love to get your help in making GitHub Copilot better! If you have
140-
feedback or encounter any problems, please reach out on our [Feedback
141-
forum](https://github.com/orgs/community/discussions/categories/copilot).
194+
We welcome your feedback to make GitHub Copilot better! If you have feedback or encounter problems, please reach out on our [Feedback forum](https://github.com/orgs/community/discussions/categories/copilot).
195+
196+
---
142197

143198
## Acknowledgements
144199

145-
Thank you to @intitni for creating the original project that this is based on.
200+
Thank you to @intitni for creating the original project this is based on.
146201

147-
Attributions can be found under About when running the app or in
148-
[Credits.rtf](./Copilot%20for%20Xcode/Credits.rtf).
202+
Attributions can be found under "About" in the app or in [Credits.rtf](./Copilot%20for%20Xcode/Credits.rtf).

0 commit comments

Comments
 (0)