VSCode Shortcut Commands for Windows and macOS
Visual Studio Code (VSCode) is a popular code editor developed by Microsoft. It provides a wide range of features and extensions to enhance your coding experience. One of the key aspects that can significantly boost productivity in VSCode is mastering its keyboard shortcuts. Here’s a comprehensive guide to the most useful VSCode shortcuts for both Windows and macOS users.
Basic Navigation
Action | Windows Shortcuts | macOS Shortcuts |
---|
Open Command Palette | Ctrl + Shift + P | Cmd + Shift + P |
Open File | Ctrl + P | Cmd + P |
Close Editor | Ctrl + W | Cmd + W |
Close All Editors | Ctrl + K, Ctrl + W | Cmd + K, Cmd + W |
Switch to Next Editor | Ctrl + 1, 2, 3, 4... | Cmd + 1, 2, 3, 4... |
Go to Definition | F12 | F12 |
Go to Line | Ctrl + G | Cmd + G |
Go Back | Alt + Left Arrow | Ctrl + - |
Go Forward | Alt + Right Arrow | Ctrl + Shift + - |
Editing
Action | Windows Shortcuts | macOS Shortcuts |
---|
Copy Line | Ctrl + C | Cmd + C |
Paste Line | Ctrl + V | Cmd + V |
Cut Line | Ctrl + X | Cmd + X |
Undo | Ctrl + Z | Cmd + Z |
Redo | Ctrl + Y | Cmd + Shift + Z |
Duplicate Line | Alt + Shift + Down Arrow | Option + Shift + Down Arrow |
Move Line Up/Down | Alt + Up/Down Arrow | Option + Up/Down Arrow |
Comment/Uncomment Line | Ctrl + / | Cmd + / |
Search and Replace
Action | Windows Shortcuts | macOS Shortcuts |
---|
Find | Ctrl + F | Cmd + F |
Find Next | F3 | Cmd + G |
Find Previous | Shift + F3 | Cmd + Shift + G |
Replace | Ctrl + H | Cmd + Option + F |
Toggle Search/Replace Panel | Ctrl + Shift + F | Cmd + Shift + F |
Code Management
Action | Windows Shortcuts | macOS Shortcuts |
---|
Format Document | Shift + Alt + F | Shift + Option + F |
Show Problems Panel | Ctrl + Shift + M | Cmd + Shift + M |
Open Integrated Terminal | Ctrl + ` | Cmd + ` |
Run Task | Ctrl + Shift + B | Cmd + Shift + B |
Toggle Sidebar | Ctrl + B | Cmd + B |
Debugging
Action | Windows Shortcuts | macOS Shortcuts |
---|
Start/Continue Debugging | F5 | F5 |
Step Over | F10 | F10 |
Step Into | F11 | F11 |
Step Out | Shift + F11 | Shift + F11 |
Toggle Breakpoint | F9 | F9 |
Extensions and Miscellaneous
Action | Windows Shortcuts | macOS Shortcuts |
---|
Open Extensions View | Ctrl + Shift + X | Cmd + Shift + X |
Open Settings | Ctrl + , | Cmd + , |
Open Keyboard Shortcuts | Ctrl + K, Ctrl + S | Cmd + K, Cmd + S |
Mastering these shortcuts can greatly enhance your efficiency and workflow in VSCode. Whether you're debugging, writing code, or managing files, these commands help streamline your coding experience.
Comments
Post a Comment