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: content/copilot/get-started/quickstart.md
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -369,3 +369,59 @@ The following example uses Swift, however other languages will work similarly.
369
369
{% data reusables.copilot.quickstart-nextsteps2 %}
370
370
371
371
{% endxcode %}
372
+
373
+
<!-- --------------------- -->
374
+
<!-- Eclipse -->
375
+
<!-- --------------------- -->
376
+
377
+
{% eclipse %}
378
+
379
+
{% data reusables.copilot.quickstart-intro %}
380
+
381
+
Instructions for using {% data variables.product.prodname_copilot_short %} differ depending on where you are using it. This version of the quickstart is for Eclipse. Click the tabs above for instructions on using {% data variables.product.prodname_copilot_short %} in other environments.
382
+
383
+
{% ifversion fpt %}
384
+
{% data reusables.copilot.quickstart-signup %}
385
+
{% endif %}
386
+
387
+
## Prerequisites
388
+
389
+
***Subscription to {% data variables.product.prodname_copilot_short %}**. To use {% data variables.product.prodname_copilot %} in Eclipse, you must have an active {% data variables.product.prodname_copilot %} subscription. {% data reusables.copilot.subscription-prerequisite %}
390
+
***Latest version of the {% data variables.product.prodname_copilot %} extension**. For installation instructions, see [AUTOTITLE](/copilot/how-tos/set-up/install-copilot-extension?tool=eclipse).
391
+
***Sign in to {% data variables.product.company_short %} in Eclipse**. If you experience authentication issues, see [AUTOTITLE](/copilot/troubleshooting-github-copilot/troubleshooting-issues-with-github-copilot-chat#troubleshooting-authentication-issues-in-your-editor).
392
+
393
+
## Chat with {% data variables.product.prodname_copilot %}
394
+
395
+
After you've installed the {% data variables.product.prodname_copilot %} plugin, you can ask {% data variables.product.prodname_copilot_short %} coding-related questions.
396
+
397
+
> [!NOTE] {% data reusables.copilot.chat-access-denied %}
398
+
399
+
1. Open an existing code file.
400
+
1. In the menu bar of Eclipse, click **{% data variables.product.prodname_copilot_short %}**, then click **{% octicon "copilot" aria-hidden="true" aria-label="copilot" %} Open Chat**.
401
+
1. In the {% data variables.copilot.copilot_chat_short %} window, type `what does this file do` then press <kbd>Enter</kbd>.
402
+
403
+
{% data variables.product.prodname_copilot_short %}'s answer is displayed below your question.
404
+
405
+
1. Select a line of code in the editor.
406
+
1. In the {% data variables.copilot.copilot_chat_short %} window, type `explain this line` then press <kbd>Enter</kbd>.
407
+
408
+
## Get your first code completion suggestion
409
+
410
+
The following example uses Java, however other languages will work similarly.
411
+
412
+
1. Create a new Java class called `CalculateDaysBetween`.
413
+
1. Within the class add the following comment:
414
+
415
+
```java copy
416
+
// Take 2 dates and return the number of days between them
417
+
```
418
+
419
+
{% data variables.product.prodname_copilot %} adds a suggestion of code to use for this class. Suggestions are displayed in grayed text.
420
+
1. {% data reusables.copilot.accept-suggestion %}
421
+
422
+
## Next steps
423
+
424
+
{% data reusables.copilot.quickstart-nextsteps1 %}
425
+
{% data reusables.copilot.quickstart-nextsteps2 %}
Copy file name to clipboardExpand all lines: content/copilot/how-tos/configure-custom-instructions/add-repository-instructions.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -261,6 +261,9 @@ Once saved, these instructions will apply to the current project in Eclipse that
261
261
262
262
## Creating repository-wide custom instructions
263
263
264
+
> [!NOTE]
265
+
> {% data reusables.copilot.custom-instructions-ccr-support %} See [AUTOTITLE](/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review?tool=vscode).
266
+
264
267
1. In the root of your repository, create a file named `.github/copilot-instructions.md`.
265
268
266
269
Create the `.github` directory if it does not already exist.
Currently, {% data variables.copilot.copilot_code-review_short %} in {% data variables.product.prodname_vscode_shortname %} only supports repository-wide custom instructions, and these are only supported when you are reviewing a selection of code in a file, not when reviewing all uncommitted changes.
Copy file name to clipboardExpand all lines: data/reusables/copilot/repository-custom-instructions-support.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,23 @@ Repository custom instructions let you provide {% data variables.product.prodnam
4
4
5
5
### Support for repository custom instructions
6
6
7
-
The following table shows which {% data variables.product.prodname_copilot_short %} features support the `.github/copilot-instructions.md` instructions file.
7
+
The following table shows which {% data variables.product.prodname_copilot_short %} features support custom instructions in various environments.
8
8
9
9
{% rowheaders %}
10
10
11
11
|| Eclipse | JetBrains IDEs | {% data variables.product.prodname_vs %} | {% data variables.product.prodname_vscode_shortname %} | {% data variables.product.prodname_dotcom_the_website %} | Xcode |
0 commit comments