Skip to content

Latest commit

 

History

History
391 lines (316 loc) · 18.1 KB

File metadata and controls

391 lines (316 loc) · 18.1 KB

⌨️ Mac & VS Code Keyboard Shortcuts (Organized Cheat Sheet)


🪟 Tabs & Windows

Shortcut Action
— Open —
Cmd + N Open new window (most apps) / New file (VS Code)
Cmd + T Open new tab / file
Cmd + Shift + N New window (VS Code) / New folder (Finder)
Cmd + Ctrl + N New folder with selected items (Finder)
— Close & Manage —
Cmd + W Close current tab
Cmd + Shift + W Close window
Cmd + Shift + T Reopen closed tab
Cmd + Q Quit app
Cmd + M Minimize window
Cmd + Option + M Minimize all window of current app
Cmd + H Hide app
Cmd + Option + H Hide all except current
Ctrl + Cmd + Q Lock screen

🔀 Navigation

Shortcut Action
— App Navigation —
Cmd + Tab Switch between apps
Cmd + Shift + Tab Reverse app switch
— Tab & Window Navigation —
Ctrl + Tab or Cmd + ctrl + → / ← Switch tabs in same app
Ctrl + Shift + Tab Reverse tab switch
Cmd + ` Switch windows of same app
Cmd + Shift + ` Reverse window switch

📁 Finder – Files & Views

Shortcut Action
Enter Rename file/folder
Cmd + R Rename selected item
Cmd + O Open file
Cmd + ↓ Open selected folder
Cmd + ↑ Go to parent folder
Cmd + Shift + G Go to folder (path)
Cmd + 1 Icon view
Cmd + 2 List view
Cmd + 3 Column view
Cmd + 4 Gallery view
Cmd + Ctrl + 1 Sort By Name
Cmd + Ctrl + 2 Sort By Kind
Cmd + Ctrl + 3 Sort By Date Last Opened
Cmd + Ctrl + 4 Sort By Date Added
Cmd + Ctrl + 5 Sort By Date Modified
Cmd + Ctrl + 6 Sort By Size
Cmd + Ctrl + 7 Sort By Tag
Cmd + J View options
Cmd + Shift + P Toggle preview pane
Cmd + Option + S Toggle sidebar
Cmd + Shift + T Toggle tab bar
Cmd + Shift + . Show / hide hidden files

📦 File Move / Copy Logic (macOS Special)

Shortcut Action
Cmd + C Copy
Cmd + V Paste
Cmd + Option + V Move (Cut-Paste)
Option + Drag Force copy
Drag (same disk) Move
Drag (different disk) Copy
➕ Cursor Indicates copying

🔍 Spotlight Power Mode

Shortcut Action
Cmd + Space Spotlight
Cmd + Enter Open file location in Finder
Space Quick preview search result
Type math Calculator
Type unit / currency Conversion
Type word Dictionary
Cmd + 1 / 2 / 3 / 4 Jump between result categories

👀 Quick Look & Preview

Shortcut Action
Space Quick Look
Cmd + Y Quick Look
Cmd + Option + Y Slideshow
Hold Space Peek preview
Quick Look ✏️ Markup / Annotate
Rotate (Quick Look) Rotate image
Trim (Quick Look video) Trim video
Convert (Quick Look) Convert image format
Sign PDF (Quick Look) Add signature
Cmd + K (Preview app) Crop image after selecting area
Cmd + Enter Reveal file in Finder

🖐️ Trackpad Gestures

Gesture Action
Two-finger scroll Scroll
Three-finger swipe up Mission Control
Three-finger swipe down App Exposé
Pinch (thumb + 3 fingers) Show desktop
Reverse pinch Launchpad
Force click Lookup / preview
Two-finger swipe from right edge Notification center
Drag file + 3-finger swipe Move file between Spaces

💻 VS Code – Command & Panels

Shortcut Action
— Command Palette —
Cmd + P Quick open / Command
: Go to line
@ Go to symbol
> VS Code commands
— Panels —
Cmd + J Toggle terminal
Cmd + B Toggle sidebar
Cmd + Shift + E Explorer
Cmd + Shift + D Debug
Cmd + Shift + X Extensions
Cmd + F Find in file
Select word + Cmd + F Search same word
Cmd + Option + F Replace in file
Cmd + Shift + F Find in workspace
Cmd + Shift + H Replace in workspace
Alt + Enter Select all search matches
Cmd + Option + , Toggle code block
Cmd + K + Cmd + 0 Collapse all

📁 VS Code – Explorer

Shortcut Action
Cmd + ↓ Open selected file
Enter Rename file
Cmd + Delete Delete file

✍️ Text Editing

Shortcut Action
— Basic Editing —
Cmd + C / V / X Copy / Paste / Cut
Cmd + Shift + Option + V Paste without formatting
Cmd + Z Undo
Shift + Cmd + Z Redo
— Cursor Movement —
Cmd + ← / → Start / end of line
Option + ← / → Move word by word
— Line Control —
Option + ↑ / ↓ Move line
Shift + Option + ↑ / ↓ Move / duplicate block
Cmd + Shift + K Delete complete line
Ctrl + K Delete line after cursor
Cmd + Del or Ctrl + U Delete line before cursor
Cmd + Enter or Shift + Enter New line below
Cmd + Shift + Enter New line above
— Deleting —
Del Backward character del
Option + Del Backward word del
Fn + Del Forward character del
Fn + Option + Del Forward word del
— Formatting —
Cmd + K Insert link
Cmd + B Bold
Cmd + I Italic
Ctrl + Cmd + Space or Fn Emoji & symbols panel

🧲 Selection & Multi-Cursor

Shortcut Action
— Selection —
Cmd + A Select all
Shift + ← / → Character selection
Shift + ↑ / ↓ Line selection
Shift + Option + ← / → Word selection
Shift + Cmd + ← / → Full line selection
Shift + Cmd + ↑ / ↓ Select document up/down
Shift + Ctrl + → Select entire function
— Multi-Cursor —
Option + Click Add cursor
Cmd + Option + ↑ / ↓ Multi-cursor keyboard
Cmd + D Select next occurrence
Cmd + F2 Select all occurrences
F2 Rename symbol
Cmd + Click Go to definition
Cmd + . Quick fix
Cmd + Match bracket

📜 Scrolling

Shortcut Action
Fn + ↑ / ↓ Page up / down
Cmd + ↑ / ↓ Top / bottom
Option + ↑ / ↓ Paragraph scroll
↑ / ↓ Line scroll

🖥️ Resize & Focus

Shortcut Action
— Window —
Fn + Ctrl + → / ← Take half screen
Fn + Ctrl + Shift + → / ← Arrange half
Fn + Ctrl + F → / ← Fill screen
Ctrl + Cmd + ↑ / ↓ Resize VS terminal
Ctrl + Cmd + F Full screen
— View —
Cmd + + / - Zoom in / out
Cmd + 0 Reset zoom / Focus side bar in VS
Cmd + 1 Focus editor in VS

🧘 Zen Mode

Shortcut Action
Cmd + K, Z Zen mode

🧪 Terminal (Mac)

Shortcut Action
Cmd + T New tab
Cmd + N New window
Cmd + K Clear terminal
Ctrl + A Line start
Ctrl + E Line end
Ctrl + U Clear before cursor
Ctrl + K Clear after cursor
Ctrl + W Delete previous word
Drag folder Paste path
history Show command history
!! Run last command
Ctrl+ L Clear screen
Ctrl+ R Reverse search history
Tab Auto-complete
Option + Click Move cursor in terminal

🌐 Browser (Chrome / Safari)

Shortcut Action
— Developer Tools —
Cmd + Option + I DevTools
Cmd + Option + J Console
Cmd + Option + C Inspect element
Cmd + Option + U View source
— Navigation —
Cmd + R Reload
Cmd + Click Open link in new tab
Cmd + < or Cmd + [ Back
Cmd + > or Cmd + ] Forward
Cmd + L Address bar
Cmd + Shift + A Search tabs

▶️ YouTube

Shortcut Action
M Mute
J Rewind 10s
K Play / Pause
L Forward 10s
Shift + < / > Speed control
C Captions
F Full screen
0–9 Jump to %
↑ / ↓ Volume
/ Move to search Bar

📄 Google Docs

Shortcut Action
— Text Size & Formatting —
Cmd + Shift + , Decrease font size
Cmd + Shift + . Increase font size
Cmd + , Subscript
Cmd + . Superscript
Cmd + Shift + X Strikethrough
— Alignment —
Cmd + Shift + L Align left
Cmd + Shift + C Align center
Cmd + Shift + R Align right
— Headings —
Cmd + Option + 0 Normal text
Cmd + Option + 1–5 Heading 1–5
— Indentation & Lists —
Cmd + [ Decrease indent
Cmd + ] Increase indent
Tab Indent list item
Shift + Tab Outdent list item
— Navigation & Editing —
Cmd + F Find
Cmd + H Replace
— Insert & Layout —
Shift + F11 Insert tab
Cmd + Enter Page break

📁 Finder – Files & Views (Additions)

Shortcut Action
Cmd + I Get file info
Option + Cmd + I Inspector (floating info panel)
Cmd + D Duplicate file
Cmd + Delete Move to trash
Cmd + Shift + Delete Empty trash

🔍 Spotlight / Lookup (Addition)

Shortcut Action
Ctrl + Cmd + D Look up word (dictionary anywhere)

🔍 Color Picking

Shortcut Action
Cmd + Shift + c copy color after opening digital color meter

🕵️ Hidden / Developer Files (Addition)

Shortcut / Method Action
Start filename with . Create hidden file (e.g., .env, .gitignore)