Skip to content

Commit d2d0be1

Browse files
authored
Merge pull request #40746 from github/repo-sync
Repo sync
2 parents 4b17819 + ca031c2 commit d2d0be1

File tree

4 files changed

+90
-11
lines changed

4 files changed

+90
-11
lines changed
33.4 KB
Loading

content/copilot/concepts/agents/coding-agent/about-coding-agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ When used effectively, {% data variables.copilot.copilot_coding_agent %} offers
5050

5151
### {% data variables.copilot.copilot_coding_agent %} versus agent mode
5252

53-
{% data variables.copilot.copilot_coding_agent %} is distinct from the "agent mode" feature available in {% data variables.product.prodname_vs %} and {% data variables.product.prodname_vscode %}. {% data variables.copilot.copilot_coding_agent %} works autonomously in a {% data variables.product.prodname_actions %}-powered environment to complete development tasks assigned through {% data variables.product.github %} issues or {% data variables.copilot.copilot_chat %} prompts, and creates pull requests with the results. In contrast, agent mode in {% data variables.product.prodname_vs %} and {% data variables.product.prodname_vscode %} is part of the {% data variables.copilot.copilot_edits %} feature that allows {% data variables.product.prodname_copilot_short %} to make autonomous edits directly in your local development environment. For more information about agent mode, see [AUTOTITLE](/copilot/using-github-copilot/copilot-chat/asking-github-copilot-questions-in-your-ide?tool=visualstudio#copilot-edits-1).
53+
{% data variables.copilot.copilot_coding_agent %} is distinct from the "agent mode" feature available in your IDE. {% data variables.copilot.copilot_coding_agent %} works autonomously in a {% data variables.product.prodname_actions %}-powered environment to complete development tasks assigned through {% data variables.product.github %} issues or {% data variables.copilot.copilot_chat %} prompts, and creates pull requests with the results. In contrast, agent mode in your IDE makes autonomous edits directly in your local development environment. For more information about agent mode, see [AUTOTITLE](/copilot/using-github-copilot/copilot-chat/asking-github-copilot-questions-in-your-ide?tool=visualstudio#copilot-edits-1).
5454

5555
### Streamlining software development with {% data variables.copilot.copilot_coding_agent %}
5656

content/copilot/get-started/quickstart.md

Lines changed: 88 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ contentType: get-started
2424

2525
## Introduction
2626

27+
<!-- --------------------- -->
28+
<!-- Web browser -->
29+
<!-- --------------------- -->
30+
2731
{% webui %}
2832

2933
You can use {% data variables.product.prodname_copilot_short %} to get answers to coding-related questions, such as how best to code something, how to fix a bug, or how someone else's code works. For full details of what {% data variables.product.prodname_copilot_short %} can do, see [AUTOTITLE](/copilot/about-github-copilot/what-is-github-copilot).
3034

31-
Instructions for using {% data variables.product.prodname_copilot_short %} differ depending on where you are using it. This version of the quickstart is for {% data variables.product.github %}. Click the tabs above for instructions on using {% data variables.product.prodname_copilot_short %} in other environments.
35+
Instructions for using {% data variables.product.prodname_copilot_short %} differ depending on where you are using it. This version of the quickstart is for using {% data variables.product.prodname_copilot_short %} on the {% data variables.product.github %} website. Click the tabs above for instructions on using {% data variables.product.prodname_copilot_short %} in other environments.
3236

3337
{% ifversion fpt %}
3438
{% data reusables.copilot.quickstart-signup %}
@@ -82,6 +86,10 @@ For more information, see [AUTOTITLE](/copilot/github-copilot-chat/copilot-chat-
8286

8387
{% endwebui %}
8488

89+
<!-- --------------------- -->
90+
<!-- Windows terminal -->
91+
<!-- --------------------- -->
92+
8593
{% windowsterminal %}
8694

8795
{% data reusables.copilot.quickstart-intro %}
@@ -94,9 +102,7 @@ Instructions for using {% data variables.product.prodname_copilot_short %} diffe
94102

95103
## Prerequisites
96104

97-
{% ifversion ghec %}
98105
* **Subscription to {% data variables.product.prodname_copilot_short %}**. To use {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_windows_terminal %}, you must have an active {% data variables.product.prodname_copilot %} subscription. {% data reusables.copilot.subscription-prerequisite %}
99-
{% endif %}
100106
* **{% data variables.product.prodname_windows_terminal %} Canary**. Terminal Chat is only available in [{% data variables.product.prodname_windows_terminal %} Canary](https://github.com/microsoft/terminal?tab=readme-ov-file#installing-windows-terminal-canary).
101107

102108
## Use {% data variables.product.prodname_copilot_short %} in Terminal Chat
@@ -132,6 +138,10 @@ After you've installed {% data variables.product.prodname_windows_terminal %} Ca
132138

133139
{% endwindowsterminal %}
134140

141+
<!-- --------------------- -->
142+
<!-- VS Code -->
143+
<!-- --------------------- -->
144+
135145
{% vscode %}
136146

137147
{% data reusables.copilot.quickstart-intro %}
@@ -144,9 +154,7 @@ Instructions for using {% data variables.product.prodname_copilot_short %} diffe
144154

145155
## Prerequisites
146156

147-
{% ifversion ghec %}
148157
* **{% data variables.product.prodname_copilot_short %} subscription** - To use {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vscode_shortname %}, you must have an active {% data variables.product.prodname_copilot %} subscription. {% data reusables.copilot.subscription-prerequisite %}
149-
{% endif %}
150158
{% data reusables.copilot.vscode-prerequisites %}
151159

152160
## Chat with {% data variables.product.prodname_copilot %}
@@ -190,6 +198,10 @@ The following example uses JavaScript, however other languages will work similar
190198

191199
{% endvscode %}
192200

201+
<!-- --------------------- -->
202+
<!-- Visual Studio -->
203+
<!-- --------------------- -->
204+
193205
{% visualstudio %}
194206

195207
{% data reusables.copilot.quickstart-intro %}
@@ -202,9 +214,7 @@ Instructions for using {% data variables.product.prodname_copilot_short %} diffe
202214

203215
## Prerequisites
204216

205-
{% ifversion ghec %}
206217
* **Subscription to {% data variables.product.prodname_copilot_short %}**. To use {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vs %}, you must have an active {% data variables.product.prodname_copilot %} subscription. {% data reusables.copilot.subscription-prerequisite %}
207-
{% endif %}
208218
{% data reusables.copilot.visual-studio-prerequisites %}
209219

210220
## Chat with {% data variables.product.prodname_copilot %}
@@ -240,6 +250,10 @@ The following example uses JavaScript, however other languages will work similar
240250

241251
{% endvisualstudio %}
242252

253+
<!-- --------------------- -->
254+
<!-- JetBrains -->
255+
<!-- --------------------- -->
256+
243257
{% jetbrains %}
244258

245259
{% data reusables.copilot.quickstart-intro %}
@@ -252,9 +266,7 @@ Instructions for using {% data variables.product.prodname_copilot_short %} diffe
252266

253267
## Prerequisites
254268

255-
{% ifversion ghec %}
256-
* **Subscription to {% data variables.product.prodname_copilot_short %}**. To use {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vs %}, you must have an active {% data variables.product.prodname_copilot %} subscription. {% data reusables.copilot.subscription-prerequisite %}
257-
{% endif %}
269+
* **Subscription to {% data variables.product.prodname_copilot_short %}**. To use {% data variables.product.prodname_copilot %} in a JetBrains IDE, you must have an active {% data variables.product.prodname_copilot %} subscription. {% data reusables.copilot.subscription-prerequisite %}
258270
* **A compatible JetBrains IDE**. {% data variables.product.prodname_copilot_short %} is supported in a large number of JetBrains IDEs. For a full list, see [AUTOTITLE](/copilot/github-copilot-chat/copilot-chat-in-ides/using-github-copilot-chat-in-your-ide?tool=jetbrains).
259271
{% data reusables.copilot.jetbrains-plugin-prerequisites %}
260272

@@ -291,3 +303,69 @@ The following example uses JavaScript, however other languages will work similar
291303
{% data reusables.copilot.quickstart-nextsteps2 %}
292304

293305
{% endjetbrains %}
306+
307+
<!-- --------------------- -->
308+
<!-- XCode -->
309+
<!-- --------------------- -->
310+
311+
{% xcode %}
312+
313+
{% data reusables.copilot.quickstart-intro %}
314+
315+
Instructions for using {% data variables.product.prodname_copilot_short %} differ depending on where you are using it. This version of the quickstart is for XCode in MacOS. Click the tabs above for instructions on using {% data variables.product.prodname_copilot_short %} in other environments.
316+
317+
{% ifversion fpt %}
318+
{% data reusables.copilot.quickstart-signup %}
319+
{% endif %}
320+
321+
## Prerequisites
322+
323+
* **Subscription to {% data variables.product.prodname_copilot_short %}**. To use {% data variables.product.prodname_copilot %} in Xcode, you must have an active {% data variables.product.prodname_copilot %} subscription. {% data reusables.copilot.subscription-prerequisite %}
324+
* **Latest version of the {% data variables.product.prodname_copilot %} extension**. For installation instructions, see [AUTOTITLE](/copilot/how-tos/set-up/install-copilot-extension?tool=xcode).
325+
* **Sign in to {% data variables.product.company_short %} in Xcode**. If you experience authentication issues, see [AUTOTITLE](/copilot/troubleshooting-github-copilot/troubleshooting-issues-with-github-copilot-chat#troubleshooting-authentication-issues-in-your-editor).
326+
327+
## Chat with {% data variables.product.prodname_copilot %}
328+
329+
After you've installed the {% data variables.product.prodname_copilot %} plugin, you can ask {% data variables.product.prodname_copilot_short %} coding-related questions.
330+
331+
> [!NOTE] {% data reusables.copilot.chat-access-denied %}
332+
333+
1. Open an existing code file.
334+
1. Click **Editor** in the menu bar, then click **{% data variables.product.prodname_copilot %}** then **Open Chat**.
335+
336+
{% data variables.copilot.copilot_chat_short %} opens in a new window.
337+
338+
1. In the {% data variables.copilot.copilot_chat_short %} window, select the file to indicate that you want to chat about this file.
339+
340+
![Screenshot of a file selected in the Chat window. The file is highlighted with a dark orange outline.](/assets/images/help/copilot/xcode-chat-about-file.png)
341+
342+
1. Type `what does this file do` then press <kbd>Enter</kbd>.
343+
344+
{% data variables.product.prodname_copilot_short %}'s answer is displayed below your question.
345+
346+
1. Select a line of code in the editor.
347+
1. In the {% data variables.copilot.copilot_chat_short %} window, type `explain this line` then press <kbd>Enter</kbd>.
348+
349+
## Get your first code completion suggestion
350+
351+
The following example uses Swift, however other languages will work similarly.
352+
353+
1. Create a new file called `CalculateDays.swift`.
354+
1. Type the following code in the new file:
355+
356+
```swift copy
357+
import Foundation
358+
359+
func calculateDaysBetweenDates(_ start: Date, _ end: Date)
360+
```
361+
362+
{% data variables.product.prodname_copilot %} adds a suggestion of code that continues this function. Suggestions are displayed in grayed text.
363+
1. {% data reusables.copilot.accept-suggestion %}
364+
1. {% data variables.product.prodname_copilot_short %} will continue to make suggestions, each of which you can accept by pressing <kbd>Tab</kbd>.
365+
366+
## Next steps
367+
368+
{% data reusables.copilot.quickstart-nextsteps1 %}
369+
{% data reusables.copilot.quickstart-nextsteps2 %}
370+
371+
{% endxcode %}

content/copilot/how-tos/set-up/install-copilot-extension.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ To use {% data variables.product.prodname_copilot %} for Xcode you must have Xco
203203
1. Make sure you have access to {% data variables.product.prodname_copilot %}. For information, see [AUTOTITLE](/copilot/about-github-copilot#getting-access-to-github-copilot).
204204
1. Make sure you have a compatible version of Xcode installed. To use {% data variables.product.prodname_copilot %} for Xcode you must have Xcode version 8.0 or above and macOS Monterey (12.0) or above. See [Xcode](https://developer.apple.com/xcode/) on the Apple Developer site.
205205
1. Download the latest version of the {% data variables.product.prodname_copilot %} for Xcode extension from the [`github/CopilotForXcode` repository](https://github.com/github/CopilotForXcode/releases/latest/download/GitHubCopilotForXcode.dmg) and install it. A background item will be added for the application to be able to start itself when Xcode starts.
206+
1. Open the **{% data variables.product.prodname_copilot %} for Xcode** application from the Applications folder and step through the on-screen instructions for setting up the extension.
206207
207208
## Granting required permissions
208209

0 commit comments

Comments
 (0)