Exercise - Refactor existing code using GitHub Copilot

Completed

Important

To complete this exercise, you need an active GitHub account and a Visual Studio Code environment configured for C# development. For help with configuring your lab environment, see Configure lab environment for GitHub Copilot Labs. For help with enabling GitHub Copilot in Visual Studio Code, see Enable GitHub Copilot in Visual Studio Code.

In this exercise, you use GitHub Copilot to refactor selected sections of a C# application and make improvements to code quality, reliability, performance, and security. Tasks include:

  • Analyze and refactor code using the Chat view in Ask and Edit modes.
  • Refactor code using inline chat and the Chat view in Edit and Agent modes.

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.

Button to launch exercise.