Skip to content

Latest commit

 

History

History
148 lines (119 loc) · 3.39 KB

macos.md

File metadata and controls

148 lines (119 loc) · 3.39 KB

macOS Shortcuts

macOS Shortcuts


  • Some are common & default in operating system.
  • Some of the keys below can be modified in System Preference → Keyboard.

Common

Accessory

  • ⌘ 凵 Spotlight
  • ⌥ ⇧ ? Show Help Menu custom
  • ⌥ ⌘ d Dock Hiding On/Off

Window

  • ⌘ ` Switch windows of the current App
  • ^ ⌘ f Toggle Full Screen
  • ⌘ , Preferences
  • ⌘ q Exit
  • ⌘ w Close
  • ⌘ h Hide
  • ⌥ ⌘ h Hide All Apps But the Front-most
    • The manipulation Hide is much better than Minimize in macOS!
    • So I prefer Hide to Minimize.
  • ⌘ m Minimize to Dock
  • ⌥ ⌘ m Minimize All Windows of the Front-most App

Tab

  • ⌘ r Refresh
  • ⌘ t New Tab
  • ⌘ 0~9 Select Tab
    • If there are more than 9 tabs, ⌘ 9 will select the last one.
  • ^ ⇥ Next Tab
  • ^ ⇧ ⇥ Prev Tab
  • ⌘ ⇥ Next App
  • ⇧ ⌘ ⇥ Prev App
  • ⌘ [ Backward
  • ⌘ ] Forward

Screenshot

  • ⇧ ⌘ 3 Capture Desktop
  • ⇧ ⌘ 4 Capture the selected area
    • The screenshots are saved in ~/Desktop

Built-in Emacs

Emacs shortcuts:

  • ^ f =
  • ^ b =
  • ^ p =
  • ^ n =
  • ^ a = ⌘ ← Home
  • ^ e = ⌘ → End
  • ^ h = Del
  • ^ d = Fn ⌫ Forward Del
  • ^ k Del to the End of the Line
  • ^ t Exchange the Charactors before & after the cursor
  • ^ o Insert a Blank Line '\n' after the cursor

They are also enabled by Zsh ( in .zshrc ) and Vim ( in .vimrc ) in iTerm 2 ( Terminal ).

Editor

Editor - File

  • ⌘ n New
  • ⌘ o Open
  • ⌘ s Save
  • ⌘ p Print
  • ⇧ ⌘ S Save as

Editor - Edit

  • ⌘ z Undo
  • ⇧ ⌘ Z Redo
  • ⌘ a Select All
  • ⌘ c Copy
  • ⌥ ⌘ c Copy Path
  • ⌘ v Paste
  • ⌥ ⌘ v Move ( after ⌘ c )
  • ⌘ f Search
  • ⌘ g Next Match
  • ⇧ ⌘ G Prev Match
  • ⌥ ← Prev Word
  • ⌥ → Next Word
  • After text selection, then input:
    • ⌘ b Bold
    • ⌘ u Underline
    • ⌘ i Italic
    • ⌘ + Bigger | Zoom In
    • ⌘ - Smaller | Zoom Out

Finder

Finder - File

  • ⌘ ↓ Open
  • ⌘ d Duplicate
  • ⌘ e Eject Disk
  • ⌘ l New Alias for a file
  • ⌘ r to Origin File of Alias

Finder - Folder

  • ⇧ ⌘ A Application
  • ⇧ ⌘ D Desktop
  • ⇧ ⌘ F All My Files
  • ⇧ ⌘ G to Folder
  • ⇧ ⌘ I iCloud
  • ⇧ ⌘ O Documents
  • ⇧ ⌘ R AirDrop
  • ⌥ ⌘ l Downloads
  • ⇧ ⌘ N New Folder
  • ⌘ ↑ to Parent Dir
  • ^ ⌘ ↑ Open Parent Dir in New Window
  • ⇧ ⌘ C Computer
  • ⇧ ⌘ H Home
  • ⇧ ⌘ K Network
  • ⇧ ⌘ U Utilities

Finder - View

  • Quick Look
  • ⌘ i Get Info
  • ⇧ ⌘ . Show Hidden Files
  • ⌘ 1 View the files in way of Icon
  • ⌘ 2 View as a List
  • ⌘ 3 View as columns
  • ⌘ 4 View as a cover flow
  • ⇧ ⌘ ⌫ Empty Trash
  • ⌥ ⇧ ⌘ ⌫ Empty Trash without Confirmation
  • ⇧ ⌘ P Show | Hide Preview
  • ⌥ ⌘ p Show | Hide Path Bar
  • ⌥ ⌘ s Show | Hide Sidebar
  • ⌥ ⌘ t Show | Hide Tool Bar
  • ⌘ / Show | Hide Status Bar