Session M1-02: Copilot Chat & inline suggestions¶
Module: Copilot Fundamentals
Difficulty: Beginner
Prerequisites: Session M1-01
Duration: 3 hours (1 hour trainer content, 2 hours lab)
Overview¶
Use Copilot Chat to understand, diagnose, fix, test, and review one calculator module. You will move between sidebar Chat, inline Chat, terminal context, and workspace context. The requirements and checks from Session 1 still apply.
The project contains a weighted-average defect and a later zero-total-weight change request. Record the context and prompts that helped, then check every change with standard-library tests.
Learning outcomes¶
- Choose a Chat surface that matches the task.
- Use selected code, files, terminal output, and workspace search as context.
- Use task shortcuts such as explain, fix, tests, and documentation when the current surface offers them.
- Refine a conversation without broadening the requested change.
- Compare model choices allowed by policy against the same tests when more than one choice is available.
Required access¶
Learners need GitHub Copilot Chat and Python 3.10 or later. If either is unavailable, stop the lab.
Materials¶
| Resource | Location |
|---|---|
| Trainer guide | trainer-content/ |
| Slides | slides.md |
| Lab | lab/ |
| Starter project | lab/starter/ |
| Reference result | lab/solution/ |