Exercise - Consolidate duplicate code using GitHub Copilot
Important
To complete this exercise, you need an active GitHub account and a Visual Studio Code environment. If you don't have a GitHub account, you can sign up for a free individual account and use a GitHub Copilot Free plan to complete the exercise. For help with enabling GitHub Copilot in Visual Studio Code, see Enable GitHub Copilot in Visual Studio Code.
This exercise guides you through the process of consolidating duplicate logic in a C# codebase using GitHub Copilot. Tasks include:
- Review an existing C# codebase, manually identify instances of redundant/duplicate code, and test the application.
- Use GitHub Copilot's Ask mode to explain the codebase and identify redundant/duplicate code.
- Use GitHub Copilot's Agent mode to consolidate redundant/duplicate code.
- Test the refactored application to ensure functionality remains intact.
When you select the launch exercise button, the browser navigates to a public GitHub page that provides instructions for this exercise.
When you finish the exercise, return here for:
- A quick knowledge check.
- A summary of what you learned during this module.
- A badge for completing this module.
