Skip to content

Commit ed92137

Browse files
committed
Update README.md
1 parent f2c9cdd commit ed92137

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

README.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,11 @@ If you are using macOS Monterey, enter the `Extensions` menu in `System Preferen
8282
### Setting Up GitHub Copilot
8383

8484
1. In the host app, switch to the service tab and click on GitHub Copilot to access your GitHub Copilot account settings.
85-
2. Optionally setup the path to Node. The default value is just `node`, Copilot for Xcode.app will try to find the Node from the PATH available in a login shell. If your Node is installed somewhere else, you can run `which node` from terminal to get the path.
86-
3. Click "Sign In", and you will be directed to a verification website provided by GitHub, and a user code will be pasted into your clipboard.
87-
4. After signing in, go back to the app and click "Confirm Sign-in" to finish.
88-
5. Go to "Feature - Suggestion" and update the feature provider to "GitHub Copilot".
85+
2. Click "Install" to install the language server.
86+
3. Optionally setup the path to Node. The default value is just `node`, Copilot for Xcode.app will try to find the Node from the PATH available in a login shell. If your Node is installed somewhere else, you can run `which node` from terminal to get the path.
87+
4. Click "Sign In", and you will be directed to a verification website provided by GitHub, and a user code will be pasted into your clipboard.
88+
5. After signing in, go back to the app and click "Confirm Sign-in" to finish.
89+
6. Go to "Feature - Suggestion" and update the feature provider to "GitHub Copilot".
8990

9091
The installed language server is located at `~/Library/Application Support/com.intii.CopilotForXcode/GitHub Copilot/executable/`.
9192

@@ -188,6 +189,12 @@ You can detach the chat panel by simply dragging it away. Once detached, the cha
188189
| `⌘M` | Minimize the chat, you can bring it back with any chat commands or by clicking the circular widget. |
189190
| `⇧↩︎` | Add new line. |
190191

192+
#### Chat Scope
193+
194+
The chat panel allows for chat scope to temporarily control the context of the conversation for the latest message. To use a scope, simply prefix the message with `@scope`.
195+
196+
Currently, the only supported scope is `@file`, which will import the content of the file into the system prompt.
197+
191198
#### Chat Plugins
192199

193200
The chat panel supports chat plugins that may not require an OpenAI API key. For example, if you need to use the `/run` plugin, you just type
@@ -207,7 +214,16 @@ If you need to end a plugin, you can just type
207214

208215
### Prompt to Code
209216

210-
Refactor selected code or write new code using natural language.
217+
Refactor existing code or write new code using natural language.
218+
219+
This feature is recommended when you need to update a specific piece of code. Some example use cases include:
220+
- Improving the code's readability.
221+
- Correcting bugs in the code.
222+
- Adding documentation to the code.
223+
- Breaking a large function into smaller functions.
224+
- Generating code with a specific template through custom commands.
225+
- Polishing and correcting grammar and spelling errors in the documentation.
226+
- Translating a localizable strings file.
211227

212228
#### Commands
213229

0 commit comments

Comments
 (0)