Skip to content
| Marketplace
Sign in
Visual Studio Code>Education>Patch TutorNew to Visual Studio Code? Get it now.
Patch Tutor

Patch Tutor

Patch Tutor

|
1 install
| (0) | Free
Turns your git changes into short lessons: inline explanations and quizzes on the code you changed.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Patch Tutor

Patch Tutor

Learn from the code you just wrote. Patch Tutor explains each change in your git working tree right on the code, then quizzes you on it.

Features

  • Explain this change. Every changed hunk gets an Explain button. The explanation opens on the code, with Simpler and Go deeper to change the level.
  • Quiz me. A few short questions on the change, graded as you answer. Answer in the thread, or move the quiz to the Quiz chat in the sidebar.
  • Progress. See which concepts you have mastered and which need practice.
  • Your model, your data. Use a model you already have in VS Code, or your own API key. No account, no backend, no telemetry.

Getting started

  1. Install Patch Tutor and open a git repository.
  2. Pick a model: open the Patch Tutor sidebar, then ⚙ in the Quiz chat.
  3. Change some code and click Explain this change above the hunk.

The Get started with Patch Tutor walkthrough (Help → Welcome) shows the same steps.

Models

Provider What you need
VS Code models GitHub Copilot, or any extension that adds models to VS Code.
Anthropic An Anthropic API key.
OpenAI-compatible A key for OpenAI, OpenRouter, Groq, or a local LM Studio server.
Ollama Ollama running locally. Nothing leaves your machine.

Privacy

  • Your diff and related code are sent only to the model provider you choose.
  • API keys are kept in VS Code's secret storage, never in settings files.
  • Quiz history and progress stay on your machine.

Settings

Setting Default Description
patchTutor.contextTokenBudget 6000 How much context to send with each explanation.
patchTutor.maxOutputTokens 1200 Maximum length of each explanation.
patchTutor.gutterIcons true Show an icon in the gutter on changed hunks.
patchTutor.highlightChangedLines true Softly highlight lines Patch Tutor can explain.

Provider and model are easiest to change from ⚙ in the Quiz chat.

Contributing

Issues and pull requests are welcome.

npm install
npm run build
npm test                  # unit tests
npm run test:integration  # runs inside VS Code

Press F5 in VS Code to launch an Extension Development Host.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft