Skip to content

Instantly share code, notes, and snippets.

@airportyh
Created September 14, 2016 13:36
Show Gist options
  • Select an option

  • Save airportyh/dd9927d7e44015d292fe34213638d489 to your computer and use it in GitHub Desktop.

Select an option

Save airportyh/dd9927d7e44015d292fe34213638d489 to your computer and use it in GitHub Desktop.

Shortcut Cheatsheet

Terminal

  • Ctrl-A - go to the beginning of the line
  • Ctrl-E - go to the end of the line
  • Up Arrow - bring up the previous command in the command history
  • TAB - autocomplete commands or files or directories

OSX

  • Cmd-Space - Spot Light to launch programs
  • Cmd-TAB - switch to the previous window
  • Hold down Cmd, while pressing TAB repeatedly - choose the window you want to switch to
  • Cmd-C - copy
  • Cmd-X - cut
  • Cmd-V - paste
  • Cmd-W - close current file or tab
  • Cmd-Q - quit current program
  • Cmd-A - select all text in the file

Atom Editor

  • Cmd-S - save, blue dot on the right of a tab means the file is unsaved
  • Hold down Cmd, press K then B - toggle the project sidebar
  • Ctrl-G - Jump to a line by its line number
  • Cmd-W - close the current file, or close the current window, if no files are present
  • Cmd-LeftArrow - move to beginning of line
  • Cmd-RightArrow - move to end of line
  • Hold down Shift, move the caret using arrow keys to select text. Can be used in combination with other shortcuts like Cmd-LeftArrow.
  • Cmd-DownArrow - move to the last line of the file
  • Cmd-UpArrow - move to the first line of the file

Google Chrome Web Browser

  • Cmd-R - reload the web page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment