Revision 1.3 - 08/22/24 (Damian Brady)
Versions of dialogs, buttons, etc. shown in screenshots may differ from current version of Copilot
NOTE: To copy and paste in the codespace, you may need to use keyboard commands - CTRL-C
and CTRL-V
(Or, the appropriate keyboard commands for your OS).
Welcome to the GitHub Copilot Hands-On Workshop! In this workshop, you will learn how to use GitHub Copilot, the world's most widely adopted AI developer tool. GitHub Copilot is an AI pair programmer that helps you write code faster and with fewer errors. It is powered by OpenAI's Large Language Model (LLM), which is a state-of-the-art language model trained on a diverse range of data sources, including publicly available code from GitHub. GitHub Copilot is available as an extension for Visual Studio Code and can be used in any language, including Python, JavaScript, TypeScript, Go, Ruby, Java, C++, and many more.
1. Follow the startup instructions in the README.md file IF NOT ALREADY DONE!
One of the advantages of using GitHub Codespaces for this workshop is that GitHub Copilot is preconfigured for you.
-
Open
.devcontainer/devcontainer.json
. -
If it is not visible, scroll down until you see the
"extensions"
section. -
Notice how the
GitHub.copilot
andGitHub.copilot-chat
extensions are already installed.
If you were using the Visual Studio Code application, you would have to manually install the GitHub Copilot extensions. Refer to Set up GitHub Copilot in VS Code for step-by-step instructions.
NOTE: You can also use GitHub Copilot in Visual Studio and compatible JetBrains IDEs.
You can now close .devcontainer/devcontainer.json
as we do not need this for anything else in this lab.
Before we begin, we will configure the browser windows to make the labs.md file always visible. This will allow you to easily switch between the lab instructions and any editor windows you have open.
-
Select the labs.md tab and drag it down so that it moves into a separate window.
-
If you are on Windows, you can "snap" the labs.md tab to one side or another and select the Codespace tab as the adjacent window.
-
Move the vertical slider until you can comfortably see the instructions in labs.md and the Codespace side by side.
Now we can see the labs.md file to one side of the screen while we are executing the actions in the Codespace on the other side of the screen. If needed, adjust the zoom level in either or both windows as desired.
We are leveraging GitHub Discussions located in this repository for real time issue reporting, feedback and suggestions.
- If you encounter any issues or need help, please post in the
Workshop Issues
discussion category. Be sure to check the existing discussions to see if your question has already been answered. We also have several proctors in the room to help answer your questions and help with issues. Please raise your hand and we will help you. - If you have any feedback or suggestions for improvement, please let us know in the
Workshop Feedback & Suggestions
discussion category. - When you encounter something you want to share, please post in the
Show and Tell
discussion category.
- Using GitHub Copilot to learn about GitHub Copilot
- Learning how to create good prompts for Copilot
- Using Copilot to simplify and explain code
- Using Copilot after the coding
- Using Copilot to generate tests
- Using Copilot to help with SQL
- Teaching Copilot about updates
- Kubernetes, YAML generation and ensuring you are using the latest version
- Exploring JavaScript, regular expression generator, auto-generating data
- Agents and Terminal
- GitHub Copilot CLI
- Being specific in your prompts
- Stay in the flow with GitHub Copilot