Recently, I started to use an external keyboard on the Mac OS, which means that I had to give up the convenience of the touchpad. In the meantime, this is a chance to pick up the many keyboard shortcuts which I otherwise would not feel the urge to learn.

OS X

  • Close an app: Cmd + Q
  • Switch desktops: Ctrl + LeftArrow/RightArrow
  • Mission control: Ctrl + UpArrow
  • App expose: Ctrl + DownArrow
  • Launch an app on dock: Ctrl + F3
  • Jump to the next app: Cmd + Tab (possibly with arrows)
  • Finder view: Cmd + 1/2/3/4
  • Switch between the windows of the same app: Cmd + ` (backtick)
  • Full screen: Cmd + Ctrl + F
  • Close a window / tab: Cmd + W
  • Close all windows of the same app: Cmd + Option + W
  • Show desktop: F11
  • Maximize a window to fill the screen: add shortcut Zoom Ctrl + Cmd + =
  • Move focus to the menu bar: Ctrl + F2
  • Open a new Finder window in Finder: Cmd + N
  • Open a selected folder: Cmd + DownArrow OR Cmd + O

VS Code

  • Show command palette: Cmd + Shift + P OR F1
  • Half open a file: Cmd + P then Enter
  • Fully open a file: Cmd + P then RightArrow
  • Make a half opened file fully open: Cmd + K then Enter
  • Open Markdown preview: Cmd + K then V
  • Go to beginning of line: Home OR Cmd + LeftArrow
  • Go to end of line: End OR Cmd + RightArrow
  • Go to previous page: PageUp
  • Go to next page: PageDown
  • Scroll in editor: Ctrl + PageUp/PageDown
  • Show Explorer: Cmd + Shift + E
  • Show Search: Cmd + Shift + F
  • Hide side bar: change “toggle side bar visibility” from Cmd + B to Cmd + Shift + A
  • Navigate editors: Ctrl + Tab

Web browser (Firefox)

  • Jump to the previous tab: Ctrl + PageUp
  • Jump to the next tab: Ctrl + Tab OR Ctrl + PageDown
  • Display/Close side bar: Cmd + B
  • Open a new tab: Cmd + T
  • Next: Cmd + LeftArrow
  • Back: Cmd + RightArrow
  • Navigate Google search results: add an add-on
    • Navigate: Tab/Shift + Tab OR LeftArrow/RightArrow
    • Open in a new tab: Cmd + Shift + Enter
    • Open in a new background tab: Cmd + Enter
    • Open in a new window: Shift + Enter

Slack

  • Switch workspace: Cmd + number OR Cmd + Shift + [/]
  • Move focus: F6 / Shift + F6