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 move between sidebar Chat, inline Chat, terminal context, and workspace context.
The project has a weighted-average defect and a later zero-total-weight change request. Check every change with standard-library tests.
You need VS Code with GitHub Copilot Chat, and Python 3.10 or later. Chat labels, commands, and shortcuts change between versions, so check yours.
Learning outcomes¶
- Choose a Chat surface that matches the task.
- Use selected code, files, terminal output, and workspace search as context.
- Use explain, fix, tests, and documentation shortcuts.
- Refine a conversation without broadening the change.
- Weigh what Chat does well and badly, and apply a few habits that help.
- Optional: compare two models against the same tests.
Materials¶
| Resource | Location |
|---|---|
| Trainer guide | trainer-content/ |
| Slides | slides.md |
| Lab | lab/ |
| Starter project | lab/starter/ |
| Reference result | lab/solution/ |