-
Who is this for: Developers looking to update and improve their legacy codebases.
-
What you'll learn: How to leverage GitHub Copilot to refactor and modernize existing code.
-
What you'll build: A set of improved code snippets that demonstrate modern coding practices.
-
Prerequisites:
- Skills exercise: Getting Started with GitHub Copilot
- Familiarity with VS Code
- Basic coding principles
-
How long: This exercise takes less than 30 minutes to complete.
In this exercise, you will:
- Explain the current state of your legacy code.
- Create a diagram of the data flow in your code.
- Identify areas of your legacy code that can be improved.
- Use GitHub Copilot to generate modern code snippets.
- Replace the old code with the new snippets and test the changes.
Simply copy the exercise to your account, then give your favorite Octocat (Mona) about 20 seconds to prepare the first lesson, then refresh the page.
Having trouble? 🤷
When copying the exercise, we recommend the following settings:
-
For owner, choose your personal account or an organization to host the repository.
-
We recommend creating a public repository, since private repositories will use Actions minutes.
If the exercise isn't ready in 20 seconds, please check the Actions tab.
-
Check to see if a job is running. Sometimes it simply takes a bit longer.
-
If the page shows a failed job, please submit an issue. Nice, you found a bug! 🐛
© 2025 GitHub • Code of Conduct • MIT License