Useful VS Code keyboard Shortcuts

  • Area focus : Shift + Cursors
  • Move to the start/end of the line : Cmd + Cursors
  • Move to previous/next word : Option + left / right cursor
  • Copy : Cmd + C
  • Paste : Cmd + V
  • Cut : Cmd + X
  • Undo a step : Cmd + Z
  • Redo a step : Cmd + Shift + Z
  • Multiple select : Cmd + D
  • Search : Cmd + F
  • Project search : Cmd + Shift+ F
  • Refer the declaration origin : F12
  • Peaking - Refer the declaration origin : Option + F12
  • Display reference : Shift + F12
  • Quick fix : Cmd + .
  • Search files : Cmd + P
  • Close the current tab : Cmd + W
  • Save the current file : Cmd + S
  • Move the line up/down : Option + up/down cursor
  • Move to other files opened : Cmd + Option + left/right cursor
  • Toggle line comment : Cmd + /
  • Display command pallet : Cmd + Shift + P / F1
  • Open a new window : Cmd + Shift + N
  • Close the folder : Cmd + K -> F
  • Open a new tab : Cmd + N
  • Save with another name : Cmd + Shift + S
  • Reopen a previously closed tab : Cmd + Shift + T
  • Open VSCode settings : Cmd + ,
  • Chanage symbol name : F2
  • Search symbol name over all files : Cmd + T
  • Move to the symbols in the file : Cmd + Shift + O
  • Move to the start/end of brackets : Cmd + Shift + \
  • Select all which matched in search : Cmd + F2
  • Toggle a block comment : Option + Shift + A
  • Replace strings in the file : Cmd + Option + F
  • See change history : Ctrl + Tab
  • Open the previously edited file : Ctrl + _ / Ctrl + -
  • Open a file : Cmd + O
  • Zoom in : Cmd + Shift + -
  • Zoom out : Cmd + -
  • Delete a line : Cmd + Shift + K
  • Copy a line to above/below : Option + Shift + up/down cursor
  • Move to specific line : Ctrl + G
  • Toggle side bar : Cmd + B
  • Move to next problem : F8
  • Move to previous problem : Shift + F8
  • Select current line : Cmd + L
  • Save all tabs : Cmd + Option + S
  • Copy the current file's path : Cmd + K -> P


Home