|
| 1 | +## Step 1: Preparing |
| 2 | + |
| 3 | +Welcome to **"Accelerate with GitHub Copilot"** exercise! :robot: |
| 4 | + |
| 5 | +In this exercise, you will be using different GitHub Copilot features to work on a website that allows students of Mergington High School to sign up for extracurricular activities :student: |
| 6 | + |
| 7 | +### What is GitHub Copilot? |
| 8 | + |
| 9 | +GitHub Copilot is an AI coding assistant that helps you write code faster and with less effort, allowing you to focus more energy on problem solving and collaboration. |
| 10 | + |
| 11 | +GitHub Copilot has been proven to increase developer productivity and accelerate the pace of software development. For more information, see [Research: quantifying GitHub Copilot’s impact on developer productivity and happiness in the GitHub blog.](https://github.blog/news-insights/research/research-quantifying-github-copilots-impact-on-developer-productivity-and-happiness/) |
| 12 | + |
| 13 | +### How can I use GitHub Copilot? |
| 14 | + |
| 15 | +### :keyboard: Activity: Getting to know basic Copilot features :robot: |
| 16 | + |
| 17 | +1. Right-click the below button to open the **Create Codespace** page in a new tab. |
| 18 | + |
| 19 | + [](https://codespaces.new/{{full_repo_name}}?quickstart=1) |
| 20 | + |
| 21 | + - The free tier of Codespaces that comes with all GitHub accounts is fine, assuming you still have minutes available. |
| 22 | + - The default Codespace settings are fine. |
| 23 | + - This repository will provide the additional settings and files for making your extension. |
| 24 | + |
| 25 | +1. Confirm the **Repository** field is your copy of the exercise, not the original, then click the green **Create Codespace** button. |
| 26 | + |
| 27 | + - ✅ Your copy: `/{{{full_repo_name}}}` |
| 28 | + - ❌ Original: `/skills/accelerate-with-copilot` |
| 29 | + |
| 30 | +1. Wait a moment for Visual Studio Code to load in your browser. |
| 31 | + |
| 32 | +1. Click the extensions sidebar tab and verify that `GitHub Copilot` extension is installed. |
| 33 | + |
| 34 | + <!-- TODO: Add screenshot --> |
| 35 | + |
| 36 | +1. Search for the Copilot Icon on the top right section of your editor. |
| 37 | + Open up Copilot Chat and ask Copilot to introduce you to the project, to do that type `/explain` in the Chat Window. |
| 38 | + <!-- TODO: Add screenshot --> |
| 39 | +1. Run the project by using `Run and Debug` section in the left sidebar of VS Code. Then head to the ports tab and open the application available on port 8000 |
| 40 | + |
| 41 | + <!-- TODO: Add screenshot --> |
| 42 | + |
| 43 | +1. Great! Now that you know what we will be working with, let's have your first interaction with Copilot. |
| 44 | + |
| 45 | + Open up a terminal in VS Code so you won't interrupt the debug session you just started. |
| 46 | + |
| 47 | + Next, `Right click` within the newly created terminal window, then click `Copilot` => `Terminal Inline Chat`. |
| 48 | + |
| 49 | + This feature can help you with any shell commands, in our case let's ask Copilot |
| 50 | + |
| 51 | + ```txt |
| 52 | + Hey copilot, how can I create and publish a new git branch? The branch should be named accelerate-with-copilot |
| 53 | + ``` |
| 54 | + |
| 55 | + Copilot will provide you with a list of commands that it thinks you should run. If something feels off, you can Ask Copilot to fix or customize the commands further and when you are ready, press `Run` and Copilot will run the commands for you in your terminal! |
| 56 | + |
| 57 | +1. Wait a moment for the bot to check your work. You will see a comment with progress info and the next lesson. |
| 58 | + |
| 59 | + <details> |
| 60 | + <summary>Having trouble? 🤷</summary><br/> |
| 61 | + |
| 62 | + If you don't get feedback, here are some things to check: |
| 63 | + |
| 64 | + - Make sure your created the branch with the exact name `accelerate-with-copilot`. No prefixes or suffixes. |
| 65 | + |
| 66 | + </details> |
0 commit comments