The Top 20 VS Code Keyboard Shortcuts – Speed Up Your Workflow

Visual Studio Code is one of the most popular code editors in the world, known for its speed, simplicity, and customization. But even the most powerful editor is only as fast as your ability to control it — and that’s where keyboard shortcuts shine.

Below is a handpicked list of the 20 most useful VS Code keyboard shortcuts for both Windows and macOS users, categorized to help you navigate, edit, and code faster than ever.

#CategoryCommand (Windows)Command (macOS)Purpose
1 Essentials
Ctrl + C
Cmd + C
Copy selected text
2
Ctrl + V
Cmd + V
Paste copied/cut content
3
Ctrl + X
Cmd + X
Cut selected text
4
Ctrl + Z
Cmd + Z
Undo last action
5
Ctrl + Shift + Z
Cmd + Shift + Z
Redo last undo
6 Navigation
Ctrl + P
Cmd + P
Quick file navigation (Go to file)
7
Ctrl + Shift + O
Cmd + Shift + O
Go to symbol in file
8
Ctrl + G
Cmd + G
Go to specific line
9
Ctrl + Tab
Cmd + Tab
Switch between open files
10 Editing
Alt + Up/Down
Option + Up/Down
Move line up or down
11
Shift + Alt + Down
Shift + Option + Down
Copy line down
12
Ctrl + /
Cmd + /
Toggle line comment
13
Shift + Alt + A
Shift + Option + A
Toggle block comment
14 Search
Ctrl + F
Cmd + F
Find in file
15
Ctrl + H
Cmd + H
Replace in file
16 Terminal
Ctrl + `
Cmd + `
Show/Hide integrated terminal
17 Interface
Ctrl + B
Cmd + B
Toggle sidebar visibility
18
Ctrl + Shift + E
Cmd + Shift + E
Focus on Explorer view
19 Multi-cursor
Alt + Click
Option + Click
Insert additional cursor
20
Ctrl + D
Cmd + D
Select next occurrence of word