Skip to content

Commit b80af0d

Browse files
committed
Update README.md
1 parent 1c1871d commit b80af0d

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -158,29 +158,26 @@ Whenever you stop typing for a few milliseconds, the app will automatically fetc
158158
- Previous Suggestion: If there is more than one suggestion, switch to the previous one.
159159
- Accept Suggestion: Add the suggestion to the code.
160160
- 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.
162161
- 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.
163162
- Prefetch Suggestions: Call only by Copilot for Xcode. In the background, Copilot for Xcode will occasionally run this command to prefetch real-time suggestions.
164163

165-
#### Keyboard Shortcuts
166-
167-
| Shortcut | Description |
168-
|:---:|---|
169-
| `⌘W` | Cancel. |
170-
| `⌘↩︎` | Accept suggestion. |
171-
| `⇧↩︎` | Add new line. |
172-
173164
### Chat
174165

175166
This feature is powered by ChatGPT. Please ensure that you have set up your OpenAI account before using it.
176167

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+
177174
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.
178175

179176
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.
180177

181178
#### Commands
182179

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.
184181
- Explain Selection: Open a chat window and explain the selected code.
185182

186183
#### Keyboard Shortcuts
@@ -233,7 +230,7 @@ A [recommended setup](https://github.com/intitni/CopilotForXcode/issues/14) that
233230
| Reject Suggestion | `⌥{` |
234231
| Next Suggestion | `⌥>` |
235232
| Previous Suggestion | `⌥<` |
236-
| Chat with Selection | `⌥"` |
233+
| Open Chat | `⌥"` |
237234
| Explain Selection | `⌥\|` |
238235

239236
Essentially using `⌥⇧` as the "access" key combination for all bindings.

0 commit comments

Comments
 (0)