hands-on lab

GitHub Copilot Prompts and Context

Difficulty: Intermediate
Duration: Up to 2 hours
Students: 2
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

In this lab, you will use GitHub Copilot to craft effective prompts and manage the context it uses when generating suggestions.

Learning objectives

Upon completion of this lab, you will be able to:

  • Understand the implications of zero-shot prompts.
  • Understand the value of specificity.
  • Apply context to shape conversations.
  • Create custom slash commands with prompt-files.

Intended audience

This lab is intended for:

  • Software developers

Prerequisites

You should be familiar with:

  • Basic Python syntax
Hands-on Lab UUID

Lab steps

0 of 5 steps completed.Use arrow keys to navigate between steps. Press Enter to go to a step if available.
  1. Copilot Login
  2. Zero Added Context
  3. With / Without Requirements
  4. Few-Shot Examples
  5. Prompt-files