#
GitHub Copilot For Xcode
[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.
## Beta Preview Policy
As per [GitHub's Terms of Service](https://docs.github.com/en/github/site-policy/github-terms-of-service#j-beta-previews) we want to remind you that:
> Beta Previews may not be supported or may change at any time. You may receive confidential information through those programs that must remain confidential while the program is private. We'd love your feedback to make our Beta Previews better.
## Requirements
- macOS 12+
- Xcode 8+
- A GitHub Copilot subscription. To learn more, visit [https://github.com/features/copilot](https://github.com/features/copilot).
## Getting Started
1. Download the latest `dmg` from: https://github.com/github/copilot-xcode/releases/latest/download/GitHubCopilotForXcode.dmg
Updates can be downloaded and installed by the app.
1. Open the `dmg` and drag the `GitHub Copilot for Xcode.app` into the `Applications` folder.
1. On the first opening the application it will warn that it was downloaded from the internet. Click `Open` to proceed.
1. A background item will be added for the application to be able to start itself when Xcode starts.
1. Two permissions are required: `Accessibility` and `Xcode Source Editor Extension`.
The first time the application is run the `Accessibility` permission should be requested:
The `Xcode Source Editor Extension` permission needs to be enabled manually. Click
`Extension Permission` from the `Copilot for Xcode` settings to open the
System Preferences to the `Extensions` panel. Select `Xcode Source Editor`
and enable `GitHub Copilot`:
1. After granting the extension permission, please restart Xcode so the `Github Copilot` menu is available under the Xcode `Editor` menu.
Keyboard shortcuts can be set for all menu items in the `Key Bindings`
section of Xcode preferences.
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.
1. To install updates, click `Check for Updates` from the menu item or in the settings application. After installing a new version, Xcode must be restarted to use the new version correctly. New versions can also be installed from `dmg` files downloaded from the releases page. When installing a new version via `dmg`, the application must be run manually the first time to accept the downloaded from the internet warning.
1. To avoid confusion, we recommend disabling `Predictive code completion` under
`Xcode` > `Preferences` > `Text Editing` > `Editing`.
1. Press `tab` to accept the first line of a suggestion, hold `option` to view
the full suggestion, and press `option` + `tab` to accept the full suggestion.
## License
This project is licensed under the terms of the MIT open source license. Please
refer to [MIT](./LICENSE.txt) for the full terms.
## Privacy
Your code is yours. We follow responsible practices in accordance with our
[Privacy Statement](https://docs.github.com/en/site-policy/privacy-policies/github-privacy-statement)
to ensure that your code snippets will not be used as suggested code for other
users of GitHub Copilot.
To get the latest security fixes, please use the latest version of the GitHub
Copilot for Xcode.
## Support
We’d love to get your help in making GitHub Copilot better! If you have
feedback or encounter any problems, please reach out on our [Feedback
forum](https://github.com/orgs/community/discussions/categories/copilot).
## Acknowledgement
Thank you to @intitni for creating the original that this project is based on.