Visual Studio Code (VS Code) is a free, lightweight, and extensible source code editor developed by Microsoft, available on Windows, macOS, and Linux. Since its 2015 release it has grown into the most widely used development environment, with built-in IntelliSense, Git integration, a debugging engine, and a rich extension marketplace. In 2025β2026 GitHub Copilot became a core, built-in feature of VS Code, bringing AI agents, multi-file editing, inline chat, custom agents, and fully autonomous agentic workflows directly into the editor. Mastering VS Code means understanding its keyboard shortcuts, command palette, multi-cursor editing, and the expanding set of Copilot AI featuresβtogether enabling developers to write, navigate, refactor, and automate code at a pace that traditional workflows cannot match.
What This Cheat Sheet Covers
This topic spans 23 focused tables and 285 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
Table 1: Essential Keyboard Shortcuts
| Shortcut | Example | Description |
|---|---|---|
Ctrl+Shift+P (Win/Linux)Cmd+Shift+P (Mac) | β’ Opens the command palette to access every VS Code command by name β’ the most important shortcut β use it for any feature you cannot recall. | |
Ctrl+P (Win/Linux)Cmd+P (Mac) | β’ Opens the quick file picker to jump instantly to any file by name β’ supports @ for symbols, : for line numbers, # for workspace symbols. | |
F12 | β’ Jumps to the symbol definition under the cursor β’ works across files when language support is available. | |
F2 | β’ Renames the symbol under the cursor across all workspace files β’ updates all references intelligently. | |
Ctrl+. (Win/Linux)Cmd+. (Mac) | Opens the code actions menu for errors, warnings, or suggestions at the cursor. | |
Shift+Alt+F (Win/Linux)Shift+Option+F (Mac) | β’ Applies the configured code formatter to the entire document β’ requires a formatter extension. | |
Ctrl+/ (Win/Linux)Cmd+/ (Mac) | Comments or uncomments the selected lines using the language's single-line comment syntax. | |
Shift+Alt+A (Win/Linux)Shift+Option+A (Mac) | Comments or uncomments the selection using multi-line comment syntax (e.g., /* ... */). | |
Alt+F12 (Win/Linux)Option+F12 (Mac) | Opens an inline peek window showing the definition without navigating away from the current file. | |
Shift+F12 | Shows all references to the symbol across the workspace in a peek panel. | |
Ctrl+G (Win/Linux)Cmd+G (Mac) | Opens a prompt to jump to a specific line number in the active file. |