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 %}
0 commit comments