Skip to content

Essential Keyboard Shortcuts for Windows and macOS

Keyboard shortcuts save hours of time. Here are the ones worth memorizing.

Universal Shortcuts

These work on both Windows and macOS (with Cmd instead of Ctrl):

ActionWindowsmacOS
CopyCtrl+CCmd+C
CutCtrl+XCmd+X
PasteCtrl+VCmd+V
Select allCtrl+ACmd+A
UndoCtrl+ZCmd+Z
RedoCtrl+YCmd+Shift+Z
SaveCtrl+SCmd+S
FindCtrl+FCmd+F
PrintCtrl+PCmd+P
Close tabCtrl+WCmd+W
New tabCtrl+TCmd+T
Switch tabCtrl+TabCmd+Tab
BoldCtrl+BCmd+B
ItalicCtrl+ICmd+I
UnderlineCtrl+UCmd+U

Text Editing

ActionWindowsmacOS
Move to wordCtrl+←/→Option+←/→
Select wordCtrl+Shift+←/→Option+Shift+←/→
Move to line start/endHome/EndCmd+←/→
Select to line start/endShift+Home/EndCmd+Shift+←/→
Delete wordCtrl+BackspaceOption+Delete
Delete lineCtrl+Shift+K (VS Code)Cmd+Shift+K (VS Code)
Go to beginning/endCtrl+Home/EndCmd+↑/↓

Window Management

ActionWindowsmacOS
Switch windowAlt+TabCmd+Tab
Close windowAlt+F4Cmd+W
MinimizeWindows+MCmd+M
MaximizeWindows+↑Green button (top left)
Snap left/rightWindows+←/→Rectangle pro / manual
Show desktopWindows+DCmd+F3
Next window (same app)Ctrl+TabCmd+`
Lock screenWindows+LCmd+Ctrl+Q

Browser Shortcuts

ActionWindowsmacOS
New tabCtrl+TCmd+T
Close tabCtrl+WCmd+W
Reopen closed tabCtrl+Shift+TCmd+Shift+T
Next/previous tabCtrl+Tab / Ctrl+Shift+TabCmd+Option+←/→
Open historyCtrl+HCmd+Y
Open downloadsCtrl+JCmd+Shift+J
Bookmark this pageCtrl+DCmd+D
Full screenF11Cmd+Ctrl+F
Zoom in/outCtrl++/-Cmd++/-
Reset zoomCtrl+0Cmd+0
Search barCtrl+L or F6Cmd+L
View page sourceCtrl+UCmd+Option+U
Developer toolsF12Cmd+Option+I
Clear browsing dataCtrl+Shift+DelCmd+Shift+Del

Screenshots

ActionWindowsmacOS
Full screenWindows+PrtScnCmd+Shift+3
SelectionWindows+Shift+SCmd+Shift+4
WindowAlt+PrtScnCmd+Shift+4 → Space
Screenshot toolbarCmd+Shift+5

Virtual Desktops

ActionWindowsmacOS
New desktopWindows+Ctrl+DF3 → + (Mission Control)
Switch desktopWindows+Ctrl+←/→Ctrl+←/→
Close desktopWindows+Ctrl+F4Hover → ✕

VS Code Shortcuts

ActionWindowsmacOS
Command paletteCtrl+Shift+PCmd+Shift+P
Quick file openCtrl+PCmd+P
Sidebar toggleCtrl+BCmd+B
Terminal toggleCtrl+`Ctrl+`
Multi-cursorAlt+ClickOption+Click
Find in projectCtrl+Shift+FCmd+Shift+F
Format documentShift+Alt+FShift+Option+F
Go to definitionF12F12
Peek definitionAlt+F12Option+F12

macOS Trackpad Gestures

GestureAction
Two-finger scrollScroll up/down
Two-finger pinchZoom in/out
Two-finger tapRight-click
Three-finger swipe upMission Control
Three-finger swipe downApp Exposé
Three-finger swipe left/rightSwitch desktop
Four-finger pinchLaunchpad

Creating Your Own Shortcuts

Windows — AutoHotkey

; Example: Win+Space types the date
#Space::
SendInput %A_YYYY%-%A_MM%-%A_DD%
return

macOS — Keyboard Shortcuts

System Settings → Keyboard → Keyboard Shortcuts → App Shortcuts → +

Related: Learn VS Code shortcuts and how to take screenshots.