Most Commonly Used Visual Studio Code(VS Code) Shortcuts

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
  • ⌘ + 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 file
  • F12: 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 fix
  • F5: Start debugging
  • F9: Toggle breakpoint
  • F10: Step over
  • F11: Step into
  • Shift + 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 line
  • Option + ←/→: 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/
Author
John Doe
Posted on
March 8, 2025
Licensed under