Start free

Browse › GitHub

Refactor and Optimize Code with GitHub Copilot

Guided

Part of GitHub Topic: Programming

Access

StationX Infrastructure Labs — 3 attempts per lab

🔒 Add StationX Infrastructure Labs — $149 / year · 3 attempts per lab

Already have access? Sign in.

New to this? Try a free practice lab — a scripted hacking challenge in your browser, no account needed.

What you'll do

Prerequisite Required for This lab. Before starting, complete the Set Up Git and Connect to GitHub lab.

  1. The prerequisite lab only needs to be completed once for all labs in this series
  2. In this lab, you will refactor and optimize code with GitHub Copilot
  3. Set up your Visual Studio Code environment with the necessary GitHub Copilot extensions and generate initial Python code
  4. Leverage Copilot Chat to refactor this code for improved efficiency and clarity
  5. Enhance the code quality further by automatically generating comprehensive documentation and unit tests
  6. Commit the finalized, refactored code to a new remote repository on GitHub

Note: Once you begin the lab, you will not be able to pause, save, or return to your lab. Please ensure that you have set aside enough time to complete the lab before you start.

  • ⏱ About 30 minutes
  • Counts towards: GitHub Foundations