Visual Studio Code Shortcuts

As a developer, time is a valuable resource, and being able to work quickly and efficiently is crucial. Visual Studio Code is a popular code editor that offers a variety of features to increase productivity. One of the most effective ways to speed up your workflow in Visual Studio Code is by using keyboard shortcuts. In this Visual Studio Code Shortcuts Cheat Sheet, you’ll find a comprehensive list of keyboard shortcuts for various tasks, from navigating through code to debugging and more.

This cheat sheet is designed to help you save time and become a more efficient developer. By incorporating these shortcuts into your workflow, you’ll be able to focus on writing better code and delivering your projects faster. So, take advantage of this cheat sheet, and start using these shortcuts to take your productivity to the next level.

Visual Studio Code Shortcuts For Mac and Windows

Action Apple Mac Shortcut Windows Shortcut
Open Command Palette cmd + Shift + P Ctrl + Shift + P
Cut Line cmd + X Ctrl + X
Copy Line cmd + C Ctrl + C
Paste cmd + V Ctrl + V
Undo cmd + Z Ctrl + Z
Redo Shift + cmd + Z Ctrl + Y or Ctrl + Shift + Z
Save cmd + S Ctrl + S
Find cmd + F Ctrl + F
Replace cmd + H Ctrl + H
Add Selection To Next Find Match cmd + D Ctrl + D
Move line up Option + ↑ Alt + Up Arrow
Move line down Option + ↓ Alt + Down Arrow
Toggle Line Comment cmd + / Ctrl + /
Insert Line Below cmd + Shift + Enter Ctrl + Shift + Enter
Insert Line Above cmd + Enter Ctrl + Enter
Go to Symbol cmd + Shift + O Ctrl + Shift + O
Quick Open cmd + P Ctrl + P
Toggle Sidebar cmd + B Ctrl + B
Toggle Panel cmd + J Ctrl + J
Open Explorer cmd + Shift + E Ctrl + Shift + E
Find in Files cmd + Shift + F Ctrl + Shift + F
Open Source Control cmd + Shift + G Ctrl + Shift + G
Open Extensions cmd + Shift + X Ctrl + Shift + X
Open Output cmd + Shift + U Ctrl + Shift + U
Open Problems cmd + Shift + M Ctrl + Shift + M
Move to End of Line End End
Move to Beginning of Line Home Home
Move to End of Document cmd + End Ctrl + End
Move to Beginning of Document cmd + Home Ctrl + Home
Restart Debugging cmd + Shift + F5 Ctrl + Shift +F5

Visual Studio Code Shortcuts Cheat Sheet:

Action Shortcut
Open Command Palette Ctrl+Shift+P or F1
Quick Open File Ctrl+P
Go to Definition F12
Peek Definition Alt+F12
Rename Symbol F2
Open Terminal Ctrl+Shift+
Close Editor Ctrl+W
Split Editor Ctrl+\
Toggle Sidebar Ctrl+B
Toggle Terminal Ctrl+J
Toggle Full Screen F11
Move Line Up/Down Alt+Up/Down
Copy Line Up/Down Shift+Alt+Up/Down
Select Line Ctrl+L
Select Word Ctrl+D
Select All Occurrences of Word Ctrl+Shift+L
Delete Line Ctrl+Shift+K
Comment/Uncomment Line Ctrl+/
Indent Line Ctrl+]
Outdent Line Ctrl+[
Auto Indent Ctrl+Shift+I
Find Ctrl+F
Find and Replace Ctrl+H
Find Next F3
Find Previous Shift+F3
Replace Next Alt+Enter
Replace All Ctrl+Alt+Enter
Show/Hide Panel Ctrl+J
Show Problems Panel Ctrl+Shift+M
Show Output Panel Ctrl+Shift+U
Show Debug Panel Ctrl+Shift+D
Toggle Breakpoint F9
Start Debugging F5
Stop Debugging Shift+F5
Step Over F10
Step Into F11
Step Out Shift+F11
Restart Debugging Ctrl+Shift+F5
Add Selection To Next Find Match Ctrl+D
Move to End of Line End
Move to Beginning of Line Home
Move to End of Document Ctrl+End
Move to Beginning of Document Ctrl+Home
Open Explorer Ctrl+Shift+E
Open Search Ctrl+Shift+F
Open Source Control Ctrl+Shift+G
Open Debug Ctrl+Shift+D
Open Extensions Ctrl+Shift+X
Open Output Ctrl+Shift+U
Open Problems Ctrl+Shift+M
Open Terminal Ctrl+Shift+