AZ-2007: Accelerate app development by using GitHub Copilot

This course helps developers harness the power of GitHub Copilot, an AI-powered code generation tool. This course provides hands-on training on using GitHub Copilot in Visual Studio Code to streamline app development, generate code, improve documentation, and create unit tests. By the end, you'll be able to accelerate your coding process while maintaining quality and security, making GitHub Copilot a vital part of your development workflow.

 

Course Objectives

  • Understand the features and advantages of GitHub Copilot.
  • Install and configure GitHub Copilot extensions for Visual Studio Code.
  • Generate code and project documentation using GitHub Copilot tools.
  • Develop code features and manage suggestions using GitHub Copilot.
  • Create unit tests for various scenarios using GitHub Copilot.
  • Implement AI-driven code improvements for quality, performance, and security.
  • Complete a guided project utilizing GitHub Copilot for development and refactoring.

 

Who should attend

  • Software Developer

 

Prerequisites

Recommended

  • Active GitHub Copilot subscription required (personal or organizational account).
  • One year or more of code development experience.
  • Experience with C# development in Visual Studio Code using the C# Dev Kit extension.

 

Course Outline

Get started with GitHub Copilot

  • Explain what GitHub Copilot is and the advantages it provides.
  • Install the GitHub Copilot extensions for Visual Studio Code.
  • Explain the features of the GitHub Copilot extensions for Visual Studio Code and how to use them.
  • Configure the GitHub Copilot extensions for Visual Studio Code.
  • Lab: Install GitHub Copilot extensions for Visual Studio Code
  • Lab: Configure GitHub Copilot extensions for Visual Studio Code

Generate documentation using GitHub Copilot tools

  • Generate explanations of code blocks, code files, and entire code workspaces using the GitHub Copilot Chat extension for Visual Studio Code.
  • Generate code project documentation using the GitHub Copilot Chat extension for Visual Studio Code.
  • Generate inline code documentation using the GitHub Copilot Chat extension for Visual Studio Code.
  • Lab: Generate code explanations using GitHub Copilot Chat
  • Lab: Generate project documentation by using GitHub Copilot Chat
  • Lab: Generate inline code documentation by using GitHub Copilot Chat
  • Lab: Complete the "code documentation" challenge

Develop code features using GitHub Copilot tools

  • Generate autocompletion suggestions based on code and code comments using the GitHub Copilot extension for Visual Studio Code.
  • Manage autocompletion suggestions by accepting, partially accepting, and dismissing suggestions.
  • Create chat prompts/questions that communicate your intent by using a combination of chat participants, slash commands, chat variables, and natural language text.
  • Create new code using the Chat View, Inline Chat, Quick Chat, and Smart Actions features provided by the GitHub Copilot Chat extension for Visual Studio Code.
  • Manage code update suggestions by accepting, partially accepting, editing, and discarding the suggestions generated by GitHub Copilot Chat.
  • Lab: Create code by using code line completions
  • Lab: Create code by using GitHub Copilot Inline Chat
  • Lab: Complete the "create new code" challenge
  • Lab: Complete the "code logic" challenge
  • Lab: Convert code from one programming language to another

Develop unit tests using GitHub Copilot tools

  • Create unit tests using the GitHub Copilot and GitHub Copilot Chat extensions for Visual Studio Code.
  • Create unit tests that target edge cases and specific conditions using the GitHub Copilot and GitHub Copilot Chat extensions for Visual Studio Code.
  • Use Visual Studio Code, the .NET SDK, and the C# Dev Kit extension to create a test project and verify that your unit tests build and run successfully.
  • Lab: Create unit tests by using GitHub Copilot Chat
  • Lab: Create unit tests for specific conditions by using GitHub Copilot
  • Lab: Complete the "create unit tests" challenge

Implement code improvements using GitHub Copilot tools

  • Develop prompts/questions for GitHub Copilot Chat that help you to improve the code in your existing code projects.
  • Implement code update suggestions from GitHub Copilot Chat that improve existing code in the areas of code quality, reliability, performance, and security.
  • Lab: Improve code quality by using GitHub Copilot Chat
  • Lab: Improve code reliability and performance by using GitHub Copilot Chat
  • Lab: Improve code security by using GitHub Copilot Chat
  • Lab: Complete the "app improvement" challenge

Other relevant courses