Keyboard Shortcuts Cheat Sheet

Boost your productivity by keeping your hands on the keyboard. Essential shortcuts for VS Code, Vim, and the Terminal.

VS Code (Mac)

Key / CodeDescription
Cmd + PQuick Open (File search)
Cmd + Shift + FGlobal Find
Cmd + BToggle Sidebar
Ctrl + `Toggle Terminal
Option + ClickMulti-cursor (Insert cursor at click)
Cmd + DSelect next occurrence of current selection
Cmd + Shift + LSelect all occurrences of current selection
Option + Up/DownMove line up/down
Shift + Option + Up/DownDuplicate line up/down

Terminal (Bash/Zsh)

Key / CodeDescription
Ctrl + AGo to start of line
Ctrl + EGo to end of line
Ctrl + RReverse search history
Ctrl + LClear screen
Ctrl + WDelete word before cursor
Ctrl + UClear line before cursor
!!Repeat last command (e.g. 'sudo !!')

Vim (Basic Navigation)

Key / CodeDescription
h / j / k / lLeft / Down / Up / Right
iInsert mode
EscExit Insert mode
:wSave
:qQuit
ddDelete (cut) line
yyYank (copy) line
pPaste
/Search
Knowledge is power.