Most Commonly Used Visual Studio Code(VS Code) Shortcuts
Related
MacOS
Keyboard Symbols
- Control (or Ctrl) ⌃
- Option (or Alt) ⌥
- Shift ⇧
- Command (or Cmd) ⌘
File Operations
⌘ + N: Create a new file⌘ + O: Open file⌘ + P: Quickly Open files by typing their names⌘ + S: Save the current file⌘ + ⇧ + S: Save As⌘ + W: Close the current tab/file⌘ + ⇧ + W: Close the current window⌘ + ⇧ + N: Open a new window
Navigation
⌘ + Tab: Switch between open files⌘ + ⇧ + Tab: Reverse the direction of the tab switch⌘ + G: Find next⌘ + ⇧ + G: Find previous⌘ + ⇧ + O: Go a specific symbol in the current fileF12: Go the definition of a symbol⌃ + -: Go back to previous location⌃ + ⇧ + -: Go forward to next location
Editing
⌘ + Z: Undo the last action⌘ + ⇧ + Z: Redo the last action⌘ + X: Cut the selected text⌘ + C: Copy the selected text⌘ + V: Paste the copied text⌘ + A: Select all⌘ + D: Select next occurrence of current word⌘ + ⇧ + L: Select all occurrence of current word⌥ + ⇧ + ↑/↓: Copy line up/down⌥ + ↑/↓: Move the current line up/down⌘ + ⇧ + K: Delete line
Display
⌃ + ⌘ + F: Toggle full screen⌘ + ⇧ + E: Show Explorer⌘ + ⇧ + F: Show Search⌃ + ⇧ + G: Show Source Control⌘ + ⇧ + D: Show Debug⌘ + ⇧ + H: Replace in files⌘ + ⇧ + V: Open Markdown preview⌘ + K + V: Open Markdown preview to the side⌘ + ⇧ + N: Open a new window.
Development and Debugging
⌘ + .: Show quick fixF5: Start debuggingF9: Toggle breakpointF10: Step overF11: Step intoShift + F11: Step out
System and Configuration
⌘ + ⇧ + P: Open the command palette.⌘ + ,: Open user settings⌘ + K + ⌘ + T: Select color theme
Multi-cursor and Selection
⌥ + Click: Add cursor at click position⌘ + ⌥ + ↑/↓: Add cursor above/below⌘ + U: Undo last cursor operation
Text Manipulation
⌘ + ⇧ + \: Jump to matching bracket⌘ + ]: Indent line⌘ + [: Outdent line⌘ + ↑/↓: Go to beginning/end of file⌘ + ←/→: Go to beginning/end of lineOption + ←/→: Move cursor by word
Most Commonly Used Visual Studio Code(VS Code) Shortcuts
https://www.hardyhu.cn/2025/03/08/Most-Commonly-Used-Visual-Studio-Code-VS-Code-Shortcuts/