Consolidate duplicate logic using GitHub Copilot Agent

Intermediate
Developer
GitHub
Visual Studio Code

This module covers the identification and consolidation of duplicate logic in codebases using GitHub Copilot Agent, focusing on best practices for refactoring and code quality improvement.

Learning objectives

By the end of this module, you're able to:

  • Explain the negative effects of redundant/duplicate code and the benefits of consolidation.
  • Describe common refactoring patterns that are used to consolidate redundant/duplicate code.
  • Use GitHub Copilot’s Ask mode to explain a codebase and identify redundant/duplicate code.
  • Use GitHub Copilot’s Agent mode to consolidate redundant/duplicate code.

Prerequisites

  • Experience using GitHub Copilot in Visual Studio Code.
  • Experience developing C# applications.