General

Show Command Palette
CtrlShiftP Win/Linux
Show Command Palette
ShiftP Mac
Quick Open (Go to File)
CtrlP Win/Linux
Quick Open (Go to File)
P Mac
Open Settings
Ctrl, Win/Linux
Open Settings
, Mac
Toggle Sidebar
CtrlB
Toggle Terminal
Ctrl`

Editing

Copy Line (empty selection)
CtrlC
Cut Line (empty selection)
CtrlX
Move Line Up/Down
Alt
Copy Line Up/Down
ShiftAlt
Delete Line
CtrlShiftK
Insert Line Below
CtrlEnter
Insert Line Above
CtrlShiftEnter
Toggle Line Comment
Ctrl/
Toggle Block Comment
ShiftAltA
Format Document
ShiftAltF

Selection & Multi-cursor

Add Cursor Above/Below
CtrlAlt
Add Selection To Next Find Match
CtrlD
Select All Occurrences
CtrlShiftL
Expand Selection
ShiftAlt
Shrink Selection
ShiftAlt
Column (Box) Selection
ShiftAltDrag

Navigation

Go to Line
CtrlG
Go to File
CtrlP
Go to Symbol in File
CtrlShiftO
Go to Symbol in Workspace
CtrlT
Go to Definition
F12
Peek Definition
AltF12
Go Back / Forward
CtrlAlt- CtrlShift-

Search & Replace

Find
CtrlF
Replace
CtrlH
Find in Files
CtrlShiftF
Replace in Files
CtrlShiftH
Find Next/Previous
F3 ShiftF3

Debugging

Start/Continue Debugging
F5
Stop Debugging
ShiftF5
Step Over
F10
Step Into
F11
Step Out
ShiftF11
Toggle Breakpoint
F9

File Management

New File
CtrlN
Save
CtrlS
Save As
CtrlShiftS
Save All
CtrlKS
Close Editor
CtrlW
Reopen Closed Editor
CtrlShiftT
Close All Editors
CtrlKCtrlW

Multi-Cursor & Selection

Add Cursor Below
CtrlAlt
Add Cursor Above
CtrlAlt
Select Next Occurrence
CtrlD
Select All Occurrences
CtrlShiftL
Column Selection
ShiftAltDrag
Expand Selection
ShiftAlt
Shrink Selection
ShiftAlt

Display & View

Toggle Full Screen
F11
Zen Mode
CtrlKZ
Split Editor
Ctrl\
Focus into Editor Group
Ctrl1/2/3
Toggle Panel
CtrlJ
Show Explorer
CtrlShiftE
Show Search
CtrlShiftF
Show Source Control
CtrlShiftG
Show Extensions
CtrlShiftX

Code Formatting & Refactoring

Format Document
ShiftAltF
Format Selection
CtrlKCtrlF
Rename Symbol
F2
Quick Fix
Ctrl.
Trigger Suggestion
CtrlSpace
Trigger Parameter Hints
CtrlShiftSpace

Terminal

New Terminal
CtrlShift`
Kill Terminal
CtrlShiftK
Scroll Up/Down
Ctrl↑/↓
Navigate Terminal Tabs
CtrlPgUp/PgDn

Git Integration

Show Git Changes
CtrlShiftG
Open Git Menu
CtrlShiftG then G

Additional Shortcuts

Show Problems Panel
CtrlShiftM
Show Output
CtrlShiftU
Toggle Word Wrap
AltZ
Toggle Line Numbers
CtrlKCtrlL
Toggle Minimap
CtrlKCtrlM
Show Markdown Preview
CtrlShiftV
Open Markdown Preview to Side
CtrlKV
Toggle Breadcrumbs
CtrlShift.
Focus Breadcrumbs
CtrlShift;
Show All Commands
F1
Open Recent
CtrlR
Change Language Mode
CtrlKM
New Window
CtrlShiftN
Close Window
CtrlShiftW
User Snippets
CtrlKCtrlS
Toggle Comments
Ctrl/
Block Comment
ShiftAltA
Toggle Tab Key Focus Mode
CtrlM
Toggle Render Whitespace
CtrlShiftP then type whitespace
Fold All
CtrlKCtrl0
Unfold All
CtrlKCtrlJ
Fold Region
CtrlShift[
Unfold Region
CtrlShift]

General

Show Command Palette
ShiftP
Quick Open (Go to File)
P
Open Settings
,
Toggle Sidebar
B
Toggle Terminal
`

Editing

Copy Line (empty selection)
C
Cut Line (empty selection)
X
Move Line Up/Down
Copy Line Up/Down
Delete Line
K
Insert Line Below
Enter
Insert Line Above
Enter
Toggle Line Comment
/
Toggle Block Comment
A
Format Document
F

Multi-Cursor & Selection

Add Cursor Below
Add Cursor Above
Select Next Occurrence
D
Select All Occurrences
L
Column Selection
Drag
Expand Selection
Shrink Selection

Navigation

Go to Line
G
Go to File
P
Go to Symbol in File
O
Go to Symbol in Workspace
T
Go to Definition
F12
Peek Definition
F12
Go Back / Forward
- / -

Search & Replace

Find
F
Replace
F
Find in Files
F
Replace in Files
H
Find Next/Previous
G / G

Debugging

Start/Continue Debugging
F5
Stop Debugging
F5
Step Over
F10
Step Into
F11
Step Out
F11
Toggle Breakpoint
F9

File Management

New File
N
Save
S
Save As
S
Save All
S
Close Editor
W
Reopen Closed Editor
T
Close All Editors
KW

Display & View

Toggle Full Screen
F
Zen Mode
KZ
Split Editor
\
Focus Editor Group
1/2/3
Toggle Panel
J
Show Explorer
E
Show Search
F
Show Source Control
G
Show Extensions
X

Code Formatting & Refactoring

Format Document
F
Format Selection
KF
Rename Symbol
F2
Quick Fix
.
Trigger Suggestion
Space
Trigger Parameter Hints
Space

Terminal

New Terminal
`
Kill Terminal
Scroll Up/Down
↑/↓
Navigate Terminal Tabs
Fn↑/↓

Git Integration

Show Git Changes
G
Open Git Menu
G then G

Additional Shortcuts

Show Problems Panel
M
Toggle Word Wrap
Z
Show Markdown Preview
V
Open Markdown Preview to Side
KV
Show All Commands
F1
Open Recent
R
Change Language Mode
KM
New Window
N
Close Window
W

How to Use Visual Studio Code Keyboard Shortcuts: Complete Guide for 2025

Visual Studio Code (VS Code) has become the most popular code editor among developers worldwide, with over 14 million users in 2025. Learning how to use VS Code keyboard shortcuts is essential for maximizing your productivity and coding efficiency. This comprehensive guide will teach you everything you need to know about VS Code shortcuts for Windows, Mac, and Linux.

What Are VS Code Keyboard Shortcuts and Why Use Them?

Keyboard shortcuts in Visual Studio Code are key combinations that execute specific commands without requiring you to navigate through menus or use your mouse. Professional developers who master VS Code shortcuts can code up to 40% faster than those relying solely on mouse navigation. These shortcuts range from basic text editing to advanced debugging and refactoring operations.

The most essential VS Code shortcuts include the Command Palette (Ctrl+Shift+P on Windows/Linux, Cmd+Shift+P on Mac), Quick Open file navigation (Ctrl+P/Cmd+P), and integrated terminal toggle (Ctrl+`). These three shortcuts alone can dramatically improve your coding workflow.

How to Customize VS Code Keyboard Shortcuts

One of the best features of Visual Studio Code is the ability to customize keyboard shortcuts to match your preferences. To access the keyboard shortcuts editor, use Ctrl+K Ctrl+S on Windows/Linux or Cmd+K Cmd+S on Mac. This opens the Keyboard Shortcuts panel where you can search for any command, view existing shortcuts, and create custom key bindings.

You can also edit the keybindings.json file directly by clicking the "Open Keyboard Shortcuts (JSON)" icon in the top right corner of the shortcuts editor. This allows advanced users to create complex keybinding configurations, including conditional shortcuts that work only in specific contexts like debugging mode or when editing specific file types.

Essential VS Code Editing Shortcuts Every Developer Should Know

Text editing shortcuts are the foundation of productive coding in VS Code. The multi-cursor editing feature (Alt+Click on Windows/Linux, Option+Click on Mac) allows you to edit multiple lines simultaneously, while Ctrl+D (Cmd+D on Mac) selects the next occurrence of the current selection, perfect for renaming variables.

Line manipulation shortcuts like moving lines up/down (Alt+↑/↓ or Option+↑/↓), copying lines (Shift+Alt+↓/↑ or Shift+Option+↓/↑), and deleting lines (Ctrl+Shift+K or Cmd+Shift+K) eliminate the need for copy-paste operations. The Go to Definition (F12) and Peek Definition (Alt+F12) shortcuts are invaluable for code navigation in large projects.

Advanced VS Code Shortcuts for Professional Developers

Professional developers leverage advanced VS Code shortcuts to navigate large codebases efficiently. The Go to Symbol in Workspace (Ctrl+T/Cmd+T) allows instant navigation to any function, class, or variable across your entire project. Bracket matching (Ctrl+Shift+\ or Cmd+Shift+\) helps you quickly jump between opening and closing brackets in complex code structures.

Refactoring shortcuts like Rename Symbol (F2), Format Document (Shift+Alt+F or Shift+Option+F), and Quick Fix (Ctrl+. or Cmd+.) streamline code maintenance tasks. The built-in Git integration shortcuts (Ctrl+Shift+G or Cmd+Shift+G to open Source Control) enable version control without leaving the editor.

VS Code Debugging Shortcuts: How to Debug Faster

Debugging is a critical part of software development, and VS Code provides powerful debugging shortcuts. Start debugging with F5, toggle breakpoints with F9, and step through code using F10 (step over), F11 (step into), and Shift+F11 (step out). The Debug Console (Ctrl+Shift+Y or Cmd+Shift+Y) provides immediate access to runtime information.

Advanced debugging shortcuts include conditional breakpoints (right-click in the gutter), logpoints for non-breaking debugging output, and the ability to evaluate expressions in the Debug Console. Mastering these shortcuts can reduce debugging time by up to 50% compared to mouse-only debugging workflows.

How to Learn VS Code Shortcuts Effectively

Learning keyboard shortcuts is a gradual process. Start with 5-10 essential shortcuts and practice them daily until they become muscle memory. The VS Code Interactive Playground (Help > Interactive Playground) provides hands-on practice for learning shortcuts in context. Create a personalized cheat sheet of your most-used shortcuts and keep it visible while coding.

Many developers use the "progressive learning" method: focus on shortcuts related to your current task. If you're doing a lot of refactoring, learn refactoring shortcuts. If you're debugging, focus on debugging shortcuts. Over time, you'll build a comprehensive repertoire of shortcuts that match your actual workflow.

VS Code Shortcuts for Different Programming Languages

While most VS Code shortcuts work universally across all programming languages, some are language-specific. For Python developers, shortcuts like running the current file (Ctrl+F5), selecting the Python interpreter (Ctrl+Shift+P, then "Python: Select Interpreter"), and formatting with Black or autopep8 are essential. JavaScript and TypeScript developers benefit from shortcuts for organizing imports, extracting to functions, and navigating module imports.

Web developers should learn Emmet abbreviation shortcuts (Tab to expand, Ctrl+E for Emmet commands) for rapid HTML and CSS authoring. The built-in Emmet support in VS Code can generate complex HTML structures with simple abbreviations, dramatically speeding up front-end development.

Workspace and Window Management Shortcuts

Efficient workspace management is crucial for multi-file projects. The Split Editor shortcuts (Ctrl+\ or Cmd+\) allow side-by-side code comparison and editing. Navigate between editor groups with Ctrl+1, Ctrl+2, Ctrl+3 (or Cmd+1, Cmd+2, Cmd+3 on Mac) to quickly switch focus between split panels.

The Explorer sidebar (Ctrl+Shift+E or Cmd+Shift+E), Search sidebar (Ctrl+Shift+F or Cmd+Shift+F), and Extensions sidebar (Ctrl+Shift+X or Cmd+Shift+X) shortcuts provide quick access to essential VS Code features. Toggle the integrated terminal with Ctrl+` (Cmd+` on Mac) to run commands without leaving your coding flow.

Search and Replace Shortcuts in VS Code

Powerful search and replace capabilities are built into VS Code with comprehensive keyboard shortcuts. Basic find (Ctrl+F or Cmd+F) and find in files (Ctrl+Shift+F or Cmd+Shift+F) are essential for code navigation. The replace functionality (Ctrl+H or Cmd+H) supports regular expressions for complex find-and-replace operations across entire projects.

Advanced search features include finding by symbol (@), finding by line number (:), and finding by command (>). The multi-file search with regex support makes refactoring large codebases manageable. Use F3 and Shift+F3 (or Cmd+G and Shift+Cmd+G on Mac) to navigate through search results efficiently.

VS Code Extension Shortcuts and Customization

Popular VS Code extensions add their own keyboard shortcuts that enhance productivity. GitLens, Bracket Pair Colorizer, Live Share, and Prettier all provide shortcuts that integrate seamlessly with VS Code's native shortcuts. Check each extension's documentation for its specific shortcuts, and customize them in the keyboard shortcuts editor if they conflict with your existing bindings.

Extensions like Vim or Emacs keymaps allow developers to use their preferred editing style within VS Code. These extensions remap VS Code's shortcuts to match Vim or Emacs conventions, providing a familiar environment for developers transitioning from other editors.

Common VS Code Shortcut Mistakes and How to Avoid Them

Many developers accidentally override important system shortcuts when customizing VS Code keybindings. Always check if a keyboard combination is already used by your operating system before assigning it in VS Code. On macOS, avoid shortcuts using Cmd+Q (quit app) or Cmd+H (hide app) as these are system-level commands.

Another common mistake is trying to learn too many shortcuts at once. Focus on shortcuts that align with your daily tasks rather than memorizing every available shortcut. The "when" clause in keybindings.json allows you to create context-specific shortcuts that only activate in appropriate situations, preventing accidental triggers.

Productivity Tips: Combining VS Code Shortcuts for Maximum Efficiency

The real power of VS Code shortcuts emerges when you combine multiple shortcuts in sequence. For example, combining Quick Open (Ctrl+P/Cmd+P) with @ symbol navigation lets you jump directly to a specific function in any file. Similarly, multi-cursor editing (Alt+Click) combined with find-next-occurrence (Ctrl+D/Cmd+D) enables powerful batch editing operations.

Create custom "chord" shortcuts (two-key combinations like Ctrl+K Ctrl+S) for complex operations you perform frequently. VS Code supports chord shortcuts natively, allowing you to create your own custom command sequences that don't conflict with existing single-key shortcuts.

Download This VS Code Shortcuts Cheat Sheet as PDF

For quick reference, download our comprehensive VS Code keyboard shortcuts cheat sheet as a PDF using the button at the top of this page. The PDF includes all shortcuts organized by category, with separate columns for Windows, Mac, and Linux keybindings. Print it out and keep it near your workspace until these shortcuts become second nature.

Conclusion: Master VS Code Shortcuts to Code 10x Faster

Mastering Visual Studio Code keyboard shortcuts is one of the best investments you can make in your development career. Start with the essential shortcuts covered in this guide, practice them daily, and gradually expand your repertoire. Within weeks, you'll notice significant improvements in your coding speed and efficiency. Remember to download our VS Code shortcuts cheat sheet PDF for offline reference, and bookmark this page for future updates as new VS Code features and shortcuts are released.

Whether you're a beginner learning how to use VS Code shortcuts for the first time, or an experienced developer looking to optimize your workflow, consistent practice with these keyboard shortcuts will transform your coding productivity. The time invested in learning these shortcuts pays dividends every single day of your development career.