Visual Studio Code Tutorial
Learn Visual Studio Code step by step: 40 lessons in 9 chapters with examples, quizzes, diagrams and projects.
Start learning →
of lessons completed
Getting Started
- What Is Visual Studio Code? Learn what Visual Studio Code is, how it differs from a full IDE, why so many developers use it and what you can do with it, from a first file to remote development.
- Installing VS Code and First Launch Install Visual Studio Code on Windows, macOS or Linux, add the code command to your shell, choose the right installer options and finish a first-launch checklist.
- Opening Folders and Workspaces Understand the difference between a folder and a workspace in VS Code, create multi-root workspaces, use .vscode settings, recent projects and Workspace Trust.
- The Command Palette Learn the VS Code Command Palette: open it with Ctrl+Shift+P, use prefixes for files, symbols and lines, see how fuzzy matching ranks results, and bind your own shortcuts.
- VS Code, Visual Studio and vscode.dev Sort out the Visual Studio family: how VS Code differs from Visual Studio, what Codespaces and vscode.dev are, and how Stable, Insiders and portable builds fit together.
Interface and Settings
- The Workbench Layout Tour the VS Code window: Activity Bar, Side Bar, editor groups, Panel, Status Bar and Zen Mode, with the shortcuts to show, hide and resize each part.
- Settings: The UI and settings.json Change VS Code behavior with the Settings UI and settings.json: search settings, understand JSONC, learn essential settings like autosave and format on save, and fix errors.
- User, Workspace and Folder Settings Learn the VS Code settings layers: default, user, remote, workspace and folder. See which wins, share team settings in .vscode, and use Profiles for different setups.
- Keyboard Shortcuts and keybindings.json Learn the essential VS Code keyboard shortcuts, search and rebind them in the Keyboard Shortcuts editor, write keybindings.json entries with when clauses and avoid conflicts.
- Themes, Fonts and Icons Make VS Code comfortable to read: pick color and icon themes, set fonts and ligatures, adjust zoom, customize colors with workbench.colorCustomizations and check contrast.
Editing and Navigation
- Multi-Cursor and Selection Editing Edit many places at once with VS Code multiple cursors: Alt+Click, Ctrl+D, Ctrl+Shift+L, column selection, expand selection and line moves, with a runnable cursor model.
- Find and Replace with Regular Expressions Master VS Code Find and Replace and Search in Files: case, whole word and regex toggles, capture groups like $1, case modifiers, include/exclude globs and preview before replacing.
- Quick Open and Go To: Navigating Code Move around large projects fast in VS Code: Quick Open with Ctrl+P, go to line and symbol, workspace symbols, definitions and references, peek, bookmarks and navigation history.
- Snippets and Emmet Use built-in snippets and Emmet abbreviations in VS Code, then create your own snippet files with tab stops, placeholders, choices and variables, plus a runnable expander model.
- Formatting, IntelliSense and Code Actions Format code on save, choose a default formatter, use IntelliSense completions and parameter hints, apply quick fixes and organize imports automatically with code actions on save.
- Refactoring and Rename Symbol Change code safely in VS Code: rename symbols across files with F2, extract variables and functions, move to a new file, review references and compare how rename differs from find and replace.
Debugging
- Debugging Basics: Breakpoints and Stepping Start debugging in VS Code: set breakpoints, run with F5, step over, into and out with F10 and F11, read the Variables and Call Stack views and trace a bug with a runnable stepping model.
- Breakpoint Types, Watch and the Debug Console Go beyond simple breakpoints in VS Code: conditional breakpoints, hit counts, logpoints, exception breakpoints, Watch expressions and the Debug Console, with a runnable condition model.
- launch.json: Debug Configurations Write VS Code launch.json files: launch vs attach, program, args, env, cwd, console, preLaunchTask, skipFiles, variables like workspaceFolder, compound configurations and a runnable validator.
- Debugging Node.js and Python Debug JavaScript with Node.js and Python in VS Code: auto attach, debug terminal, debugpy configurations, virtual environments, pytest tests, web servers and common problems, with practice code.
Extensions
- Installing and Managing Extensions Learn how the VS Code Extensions view works: search, install, update, disable per workspace, check publishers and keep your extension list safe and small.
- Essential Extensions by Task Choose VS Code extensions by job instead of by popularity: language support, quality tools, Git helpers, themes, and shared recommendations in extensions.json.
- Formatters and Linters Set up format on save, choose a default formatter per language, use ESLint code actions on save, and avoid formatter conflicts in a VS Code project.
- Language Servers and IntelliSense Understand how VS Code gets completions, hover info and go to definition from language servers using the Language Server Protocol, and how to tune IntelliSense.
Tasks and Terminal
- The Integrated Terminal Use the VS Code integrated terminal well: open, split and rename terminals, run selections, send text, search output, and the shortcuts and settings that matter.
- Terminal Profiles and Shell Integration Configure terminal profiles for PowerShell, Git Bash, WSL, zsh and bash in VS Code, set a default, pass arguments, and learn what shell integration adds.
- Tasks and tasks.json Automate builds, tests and scripts with VS Code tasks. Learn tasks.json fields, shell and process types, groups, dependsOn, variables, and input prompts.
- Problem Matchers Learn how problem matchers turn task output into clickable errors and warnings in the Problems panel: built-in matchers, custom regex patterns and watch mode.
Git and Remote Development
- Source Control Basics in VS Code Use the VS Code Source Control view for Git: initialize, stage changes by line, commit, sync with a remote, read gutter indicators and use the Git commands.
- Diffs and Merge Conflicts in VS Code Compare files with the VS Code diff editor, use inline and side-by-side views, and resolve Git merge conflicts with the 3-way merge editor step by step.
- Branches, History and the Timeline Create and switch branches in VS Code, use stash and the Source Control Graph, browse file history with the Timeline view, and open pull requests from the editor.
- Remote Development with SSH and WSL Learn how VS Code Remote Development works, connect to a server over SSH, use WSL on Windows, configure the SSH config file, forward ports and stay safe.
- Dev Containers Set up a reproducible development environment with VS Code Dev Containers: devcontainer.json, images, features, extensions, forwarded ports and lifecycle commands.
Customization and Productivity
- Keyboard Shortcuts and Keybindings Learn to view, change and create VS Code keyboard shortcuts with the Keyboard Shortcuts editor and keybindings.json, including when clauses, chords and arguments.
- User and Project Snippets Create your own VS Code snippets: JSON format, prefix, body, tab stops, placeholders, choices, variables, transforms, global and project snippet files.
- Custom Themes and Settings Profiles Change colors with themes and workbench.colorCustomizations, tune syntax with tokenColorCustomizations, set icon themes, and bundle settings in VS Code Profiles.
- Productivity Workflows Work faster in VS Code with multi-cursor editing, Emmet, multi-root workspaces, Zen mode, split editors and a daily routine for common tasks.
Projects and Practice
- Project: Set Up a Node.js Workspace Build a complete VS Code setup for a Node.js project: settings, extensions, tasks, debugging, format on save and snippets, then check it with a script.
- Project: Team Configuration and Onboarding Design a shared VS Code setup for a team: a multi-root workspace, dev container, settings policy, profiles, onboarding checklist and automated checks.
- Practice, Troubleshooting and Cheat Sheet Practice VS Code with hands-on exercises, fix slow startup and misbehaving extensions with a bisect method, and keep a cheat sheet of the shortcuts and commands you need.