|
1 | 1 | ---
|
2 | 2 | title: Quickstart for GitHub Copilot
|
3 |
| -intro: 'ADD INTRO.' |
| 3 | +intro: '{% data variables.product.prodname_copilot %} can help you work, by offering inline suggestions as you code.' |
| 4 | +product: '{% data reusables.gated-features.copilot %}' |
4 | 5 | allowTitleToDifferFromFilename: true
|
5 | 6 | versions:
|
6 | 7 | feature: 'copilot'
|
7 | 8 | shortTitle: Quickstart
|
8 |
| -topics: |
| 9 | +topics: |
9 | 10 | - Copilot
|
10 |
| ---- |
| 11 | +--- |
| 12 | + |
| 13 | +## Introduction |
| 14 | + |
| 15 | +{% data variables.product.prodname_copilot %} is an AI pair programmer. You can use {% data variables.product.prodname_copilot %} to get suggestions for whole lines or entire functions right inside your editor. |
| 16 | + |
| 17 | +This guide will show you how to sign up for {% data variables.product.prodname_copilot %}, install the {% data variables.product.prodname_copilot %} extension in {% data variables.product.prodname_vscode %}, and get your first suggestion. For more information on {% data variables.product.prodname_copilot %}, see "[About {% data variables.product.prodname_copilot %}](/copilot/overview-of-github-copilot/about-github-copilot)." For more in-depth information on how to use {% data variables.product.prodname_copilot %} in a variety of environments, see "[Getting Started](/copilot/getting-started-with-github-copilot)." |
| 18 | + |
| 19 | +## Prerequisites |
| 20 | + |
| 21 | +{% data reusables.copilot.copilot-prerequisites %} |
| 22 | +- To use {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vscode %}, you must have {% data variables.product.prodname_vscode %} installed. For more information, see the [{% data variables.product.prodname_vscode %}](https://code.visualstudio.com/) documentation. |
| 23 | + |
| 24 | +## Signing up for {% data variables.product.prodname_copilot %} |
| 25 | + |
| 26 | +Before you can start using {% data variables.product.prodname_copilot %}, you will need to set up a free trial or subscription. |
| 27 | + |
| 28 | +{% data reusables.user-settings.access_settings %} |
| 29 | +1. In the "Code, planning, and automation" section of the sidebar, click **GitHub Copilot**. |
| 30 | +2. On the {% data variables.product.prodname_copilot %} settings page, click **Start your free trial**. |
| 31 | +  |
| 32 | +3. Choose whether you want to pay monthly or yearly, and click **Continue to get access to Copilot**. |
| 33 | + - If your personal account meets the criteria for a free {% data variables.product.prodname_copilot %} subscription instead of a trial, you will automatically be taken to step 6. |
| 34 | +  |
| 35 | +4. Confirm your payment details. |
| 36 | +5. Select your preferences, then click **Save and get started**. |
| 37 | + |
| 38 | +## Installing the {% data variables.product.prodname_copilot %} extension for {% data variables.product.prodname_vscode %} |
| 39 | + |
| 40 | +To use {% data variables.product.prodname_copilot %}, you must first install the {% data variables.product.prodname_vscode %} extension. |
| 41 | + |
| 42 | +1. In the {% data variables.product.prodname_vscode %} Marketplace, go to the [{% data variables.product.prodname_copilot %} extension](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot) page and click **Install**. |
| 43 | +  |
| 44 | +1. A popup will appear, asking to open {% data variables.product.prodname_vscode %}. Click **Open {% data variables.product.prodname_vscode %}**. |
| 45 | +1. In the "Extension: {% data variables.product.prodname_copilot %}" tab in {% data variables.product.prodname_vscode %}, click **Install**. |
| 46 | +  |
| 47 | +1. If you have not previously authorized {% data variables.product.prodname_vscode %} in your {% data variables.product.prodname_dotcom %} account, you will be prompted to sign in to {% data variables.product.prodname_dotcom %} in {% data variables.product.prodname_vscode %}. |
| 48 | + - If you have previously authorized {% data variables.product.prodname_vscode %} in your {% data variables.product.prodname_dotcom %} account, {% data variables.product.prodname_copilot %} will be automatically authorized. |
| 49 | +  |
| 50 | +1. In your browser, {% data variables.product.prodname_dotcom %} will request the necessary permissions for {% data variables.product.prodname_copilot %}. To approve these permissions, click **Authorize {% data variables.product.prodname_vscode %}**. |
| 51 | +1. In {% data variables.product.prodname_vscode %}, in the "{% data variables.product.prodname_vscode %}" dialogue box, to confirm the authentication, click **Open**. |
| 52 | + |
| 53 | +## Getting your first suggestion |
| 54 | + |
| 55 | +{% data reusables.copilot.supported-languages %} The following samples are in JavaScript, but other languages will work similarly. |
| 56 | + |
| 57 | +1. Open {% data variables.product.prodname_vscode %}. |
| 58 | +{% data reusables.copilot.create-js-file %} |
| 59 | +{% data reusables.copilot.type-function-header %} |
| 60 | + {% data variables.product.prodname_copilot %} will automatically suggest an entire function body in grayed text, as shown below. The exact suggestion may vary. |
| 61 | +  |
| 62 | +{% data reusables.copilot.accept-suggestion %} |
| 63 | + |
| 64 | +## Next Steps |
| 65 | + |
| 66 | +You successfully installed {% data variables.product.prodname_copilot %} and received your first suggestion, but that's just the beginning! Here are some helpful resources for taking your next steps with {% data variables.product.prodname_copilot %}. |
| 67 | + |
| 68 | +- [Getting Started](/copilot/getting-started-with-github-copilot): You've learned how to get your first suggestion in {% data variables.product.prodname_vscode %}. These guides show you how to set up and navigate the various functions of {% data variables.product.prodname_copilot %} across all of the supported environments. |
| 69 | +- [{% data variables.product.prodname_copilot %}](https://copilot.github.com/): See practical examples of how {% data variables.product.prodname_copilot %} can help you work. |
| 70 | +- [Configuring {% data variables.product.prodname_copilot %}](/copilot/configuring-github-copilot): These guides provide details on how to configure {% data variables.product.prodname_copilot %} to your personal preferences. |
| 71 | + |
| 72 | + |
| 73 | +## Further reading |
| 74 | + |
| 75 | +- [About {% data variables.product.prodname_copilot %}](/copilot/overview-of-github-copilot/about-github-copilot) |
0 commit comments