AI Learning Hub › Learn AI › Self-Paced Courses › VS Code: Files, Changes, and AI Agents
Course · Beginner to intermediate
VS Code: Files, Changes, and AI Agents
Open the right folder, find your way around the window, read what changed in a file, and decide whether to keep it — the parts of VS Code that let you see what an AI agent actually did.
VS Code gives you one place to work with files, run commands, inspect what changed, and use tools such as AI coding agents. This course is about the parts that let you see what happened before you keep a change.
That emphasis is deliberate. Most introductions to a code editor are tours of its features, and a tour is not much use the first time something surprises you. The question that actually comes up is narrower: a file is different from how it was, and you need to know exactly how, and whether that is what you asked for.
The question has become more common rather than less. When you make a change yourself, you remember making it. When an agent makes one, you get a sentence describing it — usually accurate, necessarily shorter than what happened. The editor is where you can check.
A working page tells you what the result looks like. A diff tells you what was altered to produce it. Those answer different questions.
What this course covers
It begins with orientation: which folder is open and where it sits on your computer, what the regions of the window are called, how to reach any command without hunting through menus, and how to find out what else a change would touch. It then spends its longest stretch on reading a change — the letters beside a file name, the Source Control view, and a diff read line by line — and on the three operations that undo work in quite different amounts. It closes with what you are trusting when you install an extension or open a folder, and with a review workflow that works with any AI agent because it never names one.
The capstone puts all of it on one small change that somebody else made, including one part of it that nobody asked for and that the finished page gives no sign of.
What it deliberately leaves out
This is not a VS Code manual, a programming course or a tour of the Marketplace. It teaches enough of the neighboring systems to let you use the editor intelligently and then stops: the terminal section answers one question, which is which folder a command will run in, and the Git content stays at the level of what the interface is showing you. GitHub Without the Jargon teaches the Git model properly, and Agents Without the Hype covers what agents are and how they work.
Format
Nine modules, a capstone and a sources page, each on its own page, with an exercise in every module and a small practice project to work on.
Time
About 110 minutes in all, in sittings of 8 to 14 minutes. The capstone takes about 16.
Written for
Students, faculty and staff at Stanford Law School who are starting to use coding tools. Beginner to intermediate; no programming, Git or terminal experience assumed.
What you need
VS Code installed, and the practice project below. No account, no AI subscription and nothing to install beyond the editor itself.
The practice project
Every exercise uses one small, invented project: a page advertising a moot court night at a university that does not exist. It is plain HTML, CSS and Markdown, which means you can see the result by opening a file in your browser. There is nothing to install, no packages, no build step and no server to run.
- Download it using the button below.
- Unzip it. Your computer will create a folder named
vscode-practice. Put it somewhere easy to find, such as your Desktop. - Leave it alone for now. Module 2 is where you open it.
The capstone works whether or not you have an AI coding agent. If you have one, you will ask it to make a change; if not, the project ships with that change already prepared, which produces the same exercise.
Screenshots and product behavior in this course were observed on Visual Studio Code 1.142.0 on macOS in October 2026, in a clean installation signed in to no account. Interfaces change, and what any account can reach varies. Where a detail is not guaranteed by Microsoft’s documentation, the course says when it was seen. See Where This Came From for the evidence behind each claim, including what this course could not establish.
The course
-
Module 01 · Beginner
What VS Code Is, and What It Is Not
VS Code, the files on your disk, the terminal, Git, GitHub, extensions and an AI agent are seven different things. Telling them apart is what makes the rest of the course usable.
Start module -
Module 02 · Beginner
Open a Folder, Not a File
A file, a folder, a VS Code workspace and a Git repository are not synonyms. Knowing which folder is open is the question the rest of the course keeps returning to.
Start module -
Module 03 · Beginner
Find Your Way Around
The named regions of the window, and the one mechanism that reaches every command without hunting through menus.
Start module -
Module 04 · Beginner
Work with Files, and Find Things
Creating, renaming and deleting in the Explorer are real operations on real files. Searching the whole project is how you find out what else a change would touch.
Start module -
Module 05 · Beginner
What the Panel Is Telling You
Problems, Output and Terminal share one strip at the bottom of the window and report different things. The integrated terminal is an ordinary terminal that starts in the folder you opened.
Start module -
Module 06 · Beginner to intermediate
See What Changed
Three places the editor reports a change, and how to read a diff line by line — including the changes a finished page looks perfectly fine about.
Start module -
Module 07 · Intermediate
Keep It, Change It, or Throw It Away
Undo, Revert Change and Discard Changes sound alike and destroy different amounts of work. Staging is how you decide what a commit will contain.
Start module -
Module 08 · Intermediate
Extensions, and What You Are Trusting
An extension is software you chose to run inside your project. Workspace Trust is the product's answer to opening a folder someone else wrote, and .gitignore is not an access-control setting.
Start module -
Module 09 · Intermediate
Working Alongside an AI Agent
The agent is a separate actor working on the folder you opened. A repeatable workflow for watching what it changes and deciding what to keep, whichever agent you use.
Start module