IDE

💜Visual Studio Code Keyboard Shortcuts

34 essential shortcuts for Visual Studio Code

General

ShortcutAction
Ctrl+Shift+P/⌘⇧POpen Command Palette
Ctrl+P/⌘PQuick Open file by name
Ctrl+,/⌘,Open Settings
Ctrl+`/⌃`Toggle integrated terminal
Ctrl+B/⌘BToggle sidebar visibility
Ctrl+K Ctrl+S/⌘K ⌘SOpen keyboard shortcuts editor
Ctrl+\/⌘\Split editor right

Navigation

ShortcutAction
Ctrl+Shift+E/⌘⇧EFocus file explorer
Ctrl+Shift+F/⌘⇧FOpen search across files
Ctrl+Shift+G/⌃⇧GOpen source control panel
Ctrl+Shift+X/⌘⇧XOpen extensions panel
Ctrl+TabSwitch between open editors
Ctrl+G/⌃GGo to line number
Ctrl+Shift+O/⌘⇧OGo to symbol in file
F12Go to definition
Alt+F12/⌥F12Peek definition inline

Selection

ShortcutAction
Ctrl+D/⌘DSelect next occurrence of current word
Ctrl+Shift+L/⌘⇧LSelect all occurrences of current word
Alt+Click/⌥ClickAdd cursor at click position

Editing

ShortcutAction
Ctrl+Shift+K/⌘⇧KDelete entire line
Alt+Up/⌥↑Move line up
Alt+Down/⌥↓Move line down
Shift+Alt+Down/⇧⌥↓Copy line down (duplicate)
Ctrl+Shift+[/⌘⌥[Fold code region
Ctrl+Shift+]/⌘⌥]Unfold code region
Ctrl+//⌘/Toggle line comment
Shift+Alt+F/⇧⌥FFormat document
Ctrl+Shift+M/⌘⇧MOpen Problems panel

Refactoring

ShortcutAction
F2Rename symbol across project
Ctrl+./⌘.Quick Fix / Code Action

Debugging

ShortcutAction
F5Start / continue debugging
F9Toggle breakpoint
F10Step over
F11Step into

About Visual Studio Code Shortcuts

VS Code is a free, lightweight, and powerful source-code editor from Microsoft available on Windows, macOS, and Linux. It supports hundreds of programming languages through extensions, built-in Git integration, IntelliSense code completion, debugging, and an integrated terminal. VS Code's keyboard shortcuts are highly customizable and are essential for efficient code editing, allowing developers to navigate, refactor, and manage files without leaving the keyboard.

This reference covers 34 essential Visual Studio Code keyboard shortcuts organized across 6 categories: General, Navigation, Selection, and more. Each shortcut lists both macOS and Windows/Linux key combinations where applicable, making it easy to find the right key combo regardless of your operating system.

Learning keyboard shortcuts is one of the highest-leverage investments you can make in your daily workflow. Studies show that developers and designers who rely on keyboard shortcuts are measurably faster at common tasks. Rather than memorizing every shortcut at once, focus on the ones you use most frequently and gradually expand your repertoire.

Bookmark this page for quick reference whenever you need to look up a Visual Studio Code shortcut. The categorized layout makes it easy to find shortcuts by their function, whether you need navigation, editing, or specialized commands.

Related apps