You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEVELOPMENT.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,14 @@ Testing Real-time Suggestions is a little bit different because the Apple Script
34
34
35
35
Just run both the XPCService and the EditorExtension Target.
36
36
37
+
## Code Style
38
+
39
+
We use SwiftFormat to format the code.
40
+
41
+
The source code mostly follows the [Ray Wenderlich Style Guide](https://github.com/raywenderlich/swift-style-guide) very closely with the following exception:
42
+
43
+
- Use the Xcode default of 4 spaces for indentation.
44
+
37
45
## App Versioning
38
46
39
47
The app version and all targets' version in controlled by `Version.xcconfig`.
Copy file name to clipboardExpand all lines: README.md
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,17 +20,28 @@ Thanks to [LSP-copilot](https://github.com/TerminalFi/LSP-copilot) for showing t
20
20
21
21
## Installation and Setup
22
22
23
-
1. Download the Copilot for Xcode.app from the latest release, and extract it to the Applications folder.
23
+
### Install
24
+
25
+
1. Download the Copilot for Xcode.app from the latest [release](https://github.com/intitni/CopilotForXcode/releases), and extract it to the Applications folder.
24
26
2. Open the app, and click "Set Up Launch Agents" to set up a background running XPC Service that does the real job.
25
-
3. Refresh the Copilot status, if it fails, quit and restart the app.
26
-
4. Sign in. You will be directed to a verification website provided by GitHub, and a user code will be pasted into your clipboard.
27
-
5. After signing in, go back to the app and click "Confirm Sign-in" to finish.
28
-
5. Enable the extension in the Settings.app, then maybe restart Xcode.
27
+
3. Enable the extension in the Settings.app, then maybe restart Xcode.
28
+
29
+
### Sign In Github Copilot
30
+
31
+
1. In the app, refresh the Copilot status, if it fails, quit and restart the app.
32
+
2. Click "Sign In", you will be directed to a verification website provided by GitHub, and a user code will be pasted into your clipboard.
33
+
3. After signing in, go back to the app and click "Confirm Sign-in" to finish.
29
34
30
35
The first time the commands run, the extension will ask for 2 types of permissions:
31
36
1. Accessibility API: which the extension uses to get the editing file path.
32
37
2. Folder Access: the extension needs, to run some Apple Scripts to get the project/workspace path.
33
38
39
+
## Update
40
+
41
+
You can manually download the latest release. After updating the app, don't forget to click `Restart XPC Service` in the app to kill the old version and run the new version.
42
+
43
+
If you want to keep track of the new releases, you can watch this repo's releases to get notifications on updates.
44
+
34
45
## Commands
35
46
36
47
- Get Suggestions: Get suggestions for the editing file at the current cursor position.
0 commit comments