Develop code features using GitHub Copilot tools

Intermediate
Developer
GitHub

This module explores using GitHub Copilot and GitHub Copilot Chat suggestions to create new code. Autocompletion and code update suggestions are generated, managed, and implemented using the GitHub Copilot extensions for Visual Studio Code.

Learning objectives

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

  • 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 ViewInline 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.

Prerequisites

  • One or more years of software development experience is recommended.

  • Experience developing C# applications using Visual Studio Code and the C# Dev Kit extension is recommended.

  • An active subscription for GitHub Copilot is required for either your personal GitHub account or a GitHub account managed by an organization or enterprise. You can set up a GitHub Copilot Free plan or sign-up for a GitHub Copilot Pro subscription with a one-time 30-day free trial. For this training, signing up for a GitHub Copilot Free plan is sufficient.

  • Awareness of the GitHub Copilot free trial conditions: if you choose the 30-day free trial offer for GitHub Copilot Pro, a form of payment is requested at sign-up. Charges aren't applied until the trial is over, unless you cancel before the conclusion of the 30-day period.

  • Experience using GitHub Copilot in Visual Studio Code to explain and document code.