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: README.md
+8-11Lines changed: 8 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,29 +158,26 @@ Whenever you stop typing for a few milliseconds, the app will automatically fetc
158
158
- Previous Suggestion: If there is more than one suggestion, switch to the previous one.
159
159
- Accept Suggestion: Add the suggestion to the code.
160
160
- Reject Suggestion: Remove the suggestion comments.
161
-
- Toggle Real-time Suggestions: When turn on, Copilot will auto-insert suggestion comments to your code while editing.
162
161
- Real-time Suggestions: Call only by Copilot for Xcode. When suggestions are successfully fetched, Copilot for Xcode will run this command to present the suggestions.
163
162
- Prefetch Suggestions: Call only by Copilot for Xcode. In the background, Copilot for Xcode will occasionally run this command to prefetch real-time suggestions.
164
163
165
-
#### Keyboard Shortcuts
166
-
167
-
| Shortcut | Description |
168
-
|:---:|---|
169
-
|`⌘W`| Cancel. |
170
-
|`⌘↩︎`| Accept suggestion. |
171
-
|`⇧↩︎`| Add new line. |
172
-
173
164
### Chat
174
165
175
166
This feature is powered by ChatGPT. Please ensure that you have set up your OpenAI account before using it.
176
167
168
+
The chat knows the following information:
169
+
- The selected code in the active editor.
170
+
- The file path of the active file.
171
+
- The project path.
172
+
- The errors and warnings in the active editor.
173
+
177
174
There are currently two tabs in the chat panel: one is available shared across Xcode, and the other is only available in the current file.
178
175
179
176
You can detach the chat panel by simply dragging it away. Once detached, the chat panel will remain visible even if Xcode is inactive. To re-attach it to the widget, click the message bubble button located next to the circular widget.
180
177
181
178
#### Commands
182
179
183
-
-Chat with Selection: Open a chat window, if there is a selection, the selected code will be added to the prompt.
180
+
-Open Chat: Open a chat window.
184
181
- Explain Selection: Open a chat window and explain the selected code.
185
182
186
183
#### Keyboard Shortcuts
@@ -233,7 +230,7 @@ A [recommended setup](https://github.com/intitni/CopilotForXcode/issues/14) that
233
230
| Reject Suggestion |`⌥{`|
234
231
| Next Suggestion |`⌥>`|
235
232
| Previous Suggestion |`⌥<`|
236
-
|Chat with Selection|`⌥"`|
233
+
|Open Chat|`⌥"`|
237
234
| Explain Selection |`⌥\|`|
238
235
239
236
Essentially using `⌥⇧` as the "access" key combination for all bindings.
0 commit comments