VSCode Shortcuts Cheat Sheet
Master Visual Studio Code with this comprehensive keyboard shortcuts reference. Search by shortcut, filter by category or modifier keys (Ctrl/Cmd, Alt/Option, Shift), and boost your productivity with essential shortcuts for coding, debugging, and development workflow.
Ctrl+P
File NavigationQuick Open - Open files by name
Platform Support:
Ctrl+P (Windows/Linux) | Cmd+P (macOS)
Examples:
Ctrl+P
Open quick file pickerCtrl+P filename
Type filename to search and openCtrl+P > command
Type '>' to access command paletteNotes:
Most important VSCode shortcut for file navigation
Ctrl+Shift+E
File NavigationShow Explorer sidebar
Platform Support:
Ctrl+Shift+E (Windows/Linux) | Cmd+Shift+E (macOS)
Examples:
Ctrl+Shift+E
Toggle file explorer visibilityFocus + Arrow keys
Navigate files in explorerNotes:
Essential for project file management
Ctrl+Shift+F
File NavigationSearch in files
Platform Support:
Ctrl+Shift+F (Windows/Linux) | Cmd+Shift+F (macOS)
Examples:
Ctrl+Shift+F
Open global search panelAlt+Enter
Replace all occurrences in searchNotes:
Search across all files in workspace
Ctrl+Shift+G
File NavigationShow Source Control (Git)
Platform Support:
Ctrl+Shift+G (Windows/Linux) | Cmd+Shift+G (macOS)
Examples:
Ctrl+Shift+G
Open Git panelCtrl+Enter
Commit changesNotes:
Essential for version control workflow
Ctrl+B
File NavigationToggle sidebar visibility
Platform Support:
Ctrl+B (Windows/Linux) | Cmd+B (macOS)
Examples:
Ctrl+B
Show/hide left sidebarNotes:
Maximize editor space when needed
Ctrl+D
Multi-cursor & SelectionSelect next occurrence of current selection
Platform Support:
Ctrl+D (Windows/Linux) | Cmd+D (macOS)
Examples:
Ctrl+D
Select current word or next occurrenceCtrl+D repeatedly
Select multiple occurrences for multi-cursor editingNotes:
Most powerful multi-cursor feature in VSCode
Ctrl+Shift+L
Multi-cursor & SelectionSelect all occurrences of current selection
Platform Support:
Ctrl+Shift+L (Windows/Linux) | Cmd+Shift+L (macOS)
Examples:
Ctrl+Shift+L
Select all occurrences of selected textNotes:
Quick way to edit all occurrences at once
Alt+Click
Multi-cursor & SelectionInsert cursor at clicked location
Platform Support:
Alt+Click (Windows/Linux) | Option+Click (macOS)
Examples:
Alt+Click
Add cursor at multiple locationsAlt+Shift+Drag
Column selection modeNotes:
Create multiple cursors for simultaneous editing
Ctrl+Shift+K
Multi-cursor & SelectionDelete line
Platform Support:
Ctrl+Shift+K (Windows/Linux) | Cmd+Shift+K (macOS)
Examples:
Ctrl+Shift+K
Delete entire current lineNotes:
Quick line deletion without selecting
Ctrl+L
Multi-cursor & SelectionSelect entire line
Platform Support:
Ctrl+L (Windows/Linux) | Cmd+L (macOS)
Examples:
Ctrl+L
Select current lineCtrl+L repeatedly
Select multiple consecutive linesNotes:
Useful for line-based operations
Shift+Alt+Down
Multi-cursor & SelectionCopy line down
Platform Support:
Shift+Alt+Down (Windows/Linux) | Shift+Option+Down (macOS)
Examples:
Shift+Alt+Down
Duplicate current line belowShift+Alt+Up
Duplicate current line aboveNotes:
Quick line duplication
Alt+Down
Multi-cursor & SelectionMove line down
Platform Support:
Alt+Down (Windows/Linux) | Option+Down (macOS)
Examples:
Alt+Down
Move current line downAlt+Up
Move current line upNotes:
Reorder lines quickly
Shift+Alt+F
Code FormattingFormat document
Platform Support:
Shift+Alt+F (Windows/Linux) | Shift+Option+F (macOS)
Examples:
Shift+Alt+F
Format entire documentCtrl+K Ctrl+F
Format selection onlyNotes:
Requires a formatter extension for the language
F2
Code FormattingRename symbol
Platform Support:
F2
Examples:
F2
Rename variable/function across all filesNotes:
Smart rename with IntelliSense support
Ctrl+.
Code FormattingQuick fix / Code actions
Platform Support:
Ctrl+. (Windows/Linux) | Cmd+. (macOS)
Examples:
Ctrl+.
Show available code fixesAlt+Enter
Alternative quick fix shortcutNotes:
Access refactoring options and auto-fixes
Ctrl+Shift+P
Code FormattingShow Command Palette
Platform Support:
Ctrl+Shift+P (Windows/Linux) | Cmd+Shift+P (macOS)
Examples:
Ctrl+Shift+P
Access all VSCode commands> Format Document
Search for format commandNotes:
Gateway to all VSCode functionality
Ctrl+F
Search & ReplaceFind in current file
Platform Support:
Ctrl+F (Windows/Linux) | Cmd+F (macOS)
Examples:
Ctrl+F
Open find box for current fileF3
Find next occurrenceShift+F3
Find previous occurrenceNotes:
Basic find functionality with regex support
Ctrl+H
Search & ReplaceFind and Replace in current file
Platform Support:
Ctrl+H (Windows/Linux) | Cmd+Option+F (macOS)
Examples:
Ctrl+H
Open find and replace panelCtrl+Alt+Enter
Replace all occurrencesNotes:
Find and replace with regex support
Ctrl+Shift+H
Search & ReplaceReplace in files
Platform Support:
Ctrl+Shift+H (Windows/Linux) | Cmd+Shift+H (macOS)
Examples:
Ctrl+Shift+H
Global find and replaceNotes:
Replace across multiple files in workspace
F5
DebuggingStart debugging
Platform Support:
F5
Examples:
F5
Start/continue debugging sessionCtrl+F5
Start without debuggingNotes:
Primary debugging command
F9
DebuggingToggle breakpoint
Platform Support:
F9
Examples:
F9
Set/remove breakpoint on current lineCtrl+Shift+F9
Remove all breakpointsNotes:
Essential for debugging workflow
F10
DebuggingStep over
Platform Support:
F10
Examples:
F10
Execute current line and move to nextNotes:
Debug step commands
F11
DebuggingStep into
Platform Support:
F11
Examples:
F11
Step into function callsShift+F11
Step out of current functionNotes:
Deep debugging navigation
Shift+F5
DebuggingStop debugging
Platform Support:
Shift+F5
Examples:
Shift+F5
Stop current debugging sessionNotes:
End debugging session
Ctrl+Shift+X
Extensions & SettingsShow Extensions
Platform Support:
Ctrl+Shift+X (Windows/Linux) | Cmd+Shift+X (macOS)
Examples:
Ctrl+Shift+X
Open Extensions marketplaceNotes:
Install and manage VSCode extensions
Ctrl+,
Extensions & SettingsOpen Settings
Platform Support:
Ctrl+, (Windows/Linux) | Cmd+, (macOS)
Examples:
Ctrl+,
Open user settingsCtrl+Shift+P > Preferences
Access settings via command paletteNotes:
Configure VSCode preferences
Ctrl+K Ctrl+S
Extensions & SettingsOpen Keyboard Shortcuts
Platform Support:
Ctrl+K Ctrl+S (Windows/Linux) | Cmd+K Cmd+S (macOS)
Examples:
Ctrl+K Ctrl+S
Customize keyboard shortcutsNotes:
Modify or create custom shortcuts
Ctrl+`
Terminal IntegrationToggle integrated terminal
Platform Support:
Ctrl+` (Windows/Linux) | Cmd+` (macOS)
Examples:
Ctrl+`
Show/hide integrated terminalCtrl+Shift+`
Create new terminal instanceNotes:
Access terminal without leaving VSCode
Ctrl+Shift+C
Terminal IntegrationOpen external terminal
Platform Support:
Ctrl+Shift+C (Windows/Linux) | Cmd+Shift+C (macOS)
Examples:
Ctrl+Shift+C
Open system terminal in current directoryNotes:
Launch external terminal application
Ctrl+\
Window ManagementSplit editor
Platform Support:
Ctrl+\ (Windows/Linux) | Cmd+\ (macOS)
Examples:
Ctrl+\
Split current editor into two panesCtrl+1/2/3
Focus editor group 1, 2, or 3Notes:
Essential for multi-file editing
Ctrl+W
Window ManagementClose editor
Platform Support:
Ctrl+W (Windows/Linux) | Cmd+W (macOS)
Examples:
Ctrl+W
Close current editor tabCtrl+K W
Close all editorsNotes:
File closure shortcuts
Ctrl+Tab
Window ManagementQuick Open previous editor
Platform Support:
Ctrl+Tab (Windows/Linux) | Cmd+Tab (macOS)
Examples:
Ctrl+Tab
Switch to previously opened fileCtrl+Shift+Tab
Navigate through open editorsNotes:
Quick file switching
Ctrl+PageDown
Window ManagementNext editor tab
Platform Support:
Ctrl+PageDown (Windows/Linux) | Cmd+Option+Right (macOS)
Examples:
Ctrl+PageDown
Switch to next tabCtrl+PageUp
Switch to previous tabNotes:
Tab navigation
Ctrl+G
Code NavigationGo to line
Platform Support:
Ctrl+G (Windows/Linux) | Cmd+G (macOS)
Examples:
Ctrl+G
Jump to specific line numberCtrl+P :123
Alternative: type :line_number in Quick OpenNotes:
Quick navigation to specific lines
F12
Code NavigationGo to definition
Platform Support:
F12
Examples:
F12
Jump to function/variable definitionAlt+F12
Peek definition (inline preview)Notes:
IntelliSense navigation feature
Shift+F12
Code NavigationShow references
Platform Support:
Shift+F12
Examples:
Shift+F12
Find all references to symbolNotes:
See where symbols are used
Ctrl+-
Code NavigationGo back
Platform Support:
Ctrl+- (Windows/Linux) | Cmd+- (macOS)
Examples:
Ctrl+-
Navigate back in cursor historyCtrl+Shift+-
Navigate forward in cursor historyNotes:
Navigate through cursor position history
Ctrl+Z
General ProductivityUndo
Platform Support:
Ctrl+Z (Windows/Linux) | Cmd+Z (macOS)
Examples:
Ctrl+Z
Undo last actionCtrl+Shift+Z
Redo last undone actionNotes:
Basic undo/redo functionality
Ctrl+S
General ProductivitySave file
Platform Support:
Ctrl+S (Windows/Linux) | Cmd+S (macOS)
Examples:
Ctrl+S
Save current fileCtrl+K S
Save all filesNotes:
Essential file operations
Ctrl+N
General ProductivityNew file
Platform Support:
Ctrl+N (Windows/Linux) | Cmd+N (macOS)
Examples:
Ctrl+N
Create new untitled fileCtrl+Shift+N
New windowNotes:
File creation shortcuts
Ctrl+O
General ProductivityOpen file
Platform Support:
Ctrl+O (Windows/Linux) | Cmd+O (macOS)
Examples:
Ctrl+O
Open file dialogCtrl+K O
Open folderNotes:
File opening operations
VSCode Productivity Guide
Essential Shortcuts
- Quick Open:
Ctrl+P
- Most used shortcut - Command Palette:
Ctrl+Shift+P
- Access all commands - Multi-cursor:
Ctrl+D
- Select next occurrence - Find in Files:
Ctrl+Shift+F
- Global search - Toggle Terminal:
Ctrl+`
- Built-in terminal
Productivity Tips
- File Explorer:
Ctrl+Shift+E
for quick navigation - Split Editor:
Ctrl+\
for side-by-side editing - Go to Definition:
F12
for code navigation - Format Document:
Shift+Alt+F
for clean code - Quick Fix:
Ctrl+.
for auto-corrections
Multi-cursor Magic
Ctrl+D
- Select next occurrence of selectionCtrl+Shift+L
- Select all occurrencesAlt+Click
- Add cursor at clicked positionCtrl+Alt+Up/Down
- Add cursors above/below- Essential for bulk editing and refactoring
Navigation Mastery
Ctrl+G
- Go to specific line numberF12
- Go to definitionShift+F12
- Find all referencesCtrl+-
- Navigate back in historyCtrl+Tab
- Quick switch between files
Debugging Workflow
F5
- Start debugging sessionF9
- Toggle breakpointsF10
- Step over functionsF11
- Step into functionsShift+F5
- Stop debugging
Window Management
Ctrl+\
- Split editor verticallyCtrl+1/2/3
- Focus editor groupsCtrl+B
- Toggle sidebarCtrl+W
- Close current editorCtrl+K W
- Close all editors
🎯 Pro Tips
- Use the key filters above (Ctrl/Cmd, Alt/Option, Shift, F1-F12) to find shortcuts by modifier keys
- Customize shortcuts:
Ctrl+K Ctrl+S
opens keyboard shortcuts - Install productivity extensions like Bracket Pair Colorizer and GitLens
- Learn IntelliSense:
Ctrl+Space
for code suggestions - Use integrated terminal instead of switching windows
- Master multi-cursor editing for bulk changes
📚 What is Visual Studio Code?
Visual Studio Code (VSCode) is a free, open-source code editor developed by Microsoft. Launched in 2015, it has quickly become the most popular code editor among developers worldwide, supporting virtually every programming language and offering an extensive ecosystem of extensions.
🚀 Key Features
- ✓ IntelliSense: Smart code completion, error detection, and refactoring
- ✓ Integrated Terminal: Built-in command line access
- ✓ Git Integration: Version control built into the editor
- ✓ Extension Marketplace: Thousands of extensions available
- ✓ Multi-platform: Windows, macOS, and Linux support
- ✓ Debugging: Built-in debugger for multiple languages
💡 Why Choose VSCode?
- • Performance: Fast startup and lightweight resource usage
- • Free & Open Source: No licensing costs, active community
- • Language Support: Works with virtually any programming language
- • Customizable: Themes, settings, and keyboard shortcuts
- • Remote Development: SSH, containers, and WSL support
- • Industry Standard: Used by millions of developers globally
🎯 Perfect For
Web Development
HTML, CSS, JavaScript, TypeScript, React, Vue.js, Angular development
Backend Development
Python, Java, C#, Go, Ruby, PHP, and Node.js applications
DevOps & Cloud
Docker, Kubernetes, Azure, AWS, and infrastructure as code
🚀 Getting Started with VSCode
1. Installation
Download from code.visualstudio.com
•
Available for Windows, macOS, and Linux •
Lightweight installation (~100MB)
2. First Steps
Install language extensions • Set up your theme and preferences • Learn essential shortcuts
3. Boost Productivity
Master keyboard shortcuts • Use Command Palette frequently • Configure workspace settings
Pro Tip: VSCode's power lies in its keyboard shortcuts. Start with the essentials like Ctrl+P
and Ctrl+Shift+P
,
then gradually learn more shortcuts to dramatically increase your coding speed and efficiency! 🎯