Skip to content

Latest commit

 

History

History
89 lines (69 loc) · 2.82 KB

keyboard-shortcuts.md

File metadata and controls

89 lines (69 loc) · 2.82 KB

Hotkeys

Terminal

Keypress Action
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + L Clears the Screen, similar to the clear command
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + H Same as backspace
Ctrl + R Let’s you search through previously used commands
Ctrl + C Kill current active process
Ctrl + D Exit the current shell
Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it.
Ctrl + W Delete the word before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + T Swap the last two characters before the cursor
Tab Auto-complete files and folder names

Atom

Modifier Keys

Here are the primary modifier keys for Macs:

  • ⇧ - Shift
  • ⌘ - Command / CMD
  • ⌥ - Option / OPT / ALT
  • ⌃ - Control / CTRL

Note that many of these cursor shortcuts work in almost any Mac application, so try them outside of Atom!

Text Manipulation

Cursor

Shortcut Action
⌘ + Left/Right Move the cursor to the beginning / end of the line
⌘ + Up/Down Move the cursor to the beginning / end of the document
⌥ + Left/Right Move the cursor between words
⌥ + backspace delete to the beginning of the word

Note: Add SHIFT to select in addition to moving the cursor.

Multi-Cursor

Shortcut Action
⌘ + click Create a new cursor where you clicked; press ESC to go back to a single cursor
⇧ + ⌃ + Up/Down Create a new cursor above/below the current cursor position

Selection

Shortcut Action
⌘ + l Select the current (l)ine. Press again to select the next line
⌘ + d Select other instances of the current selection
⌘ + ⌃ + g Select all instances of the current word/selection
⌘ + ⇧ + d Duplicate current seleciton

Text Manipulation

Shortcut Action
⌘ + / Comment out the current line
⌘ + ⌃ + Up/Down Move the current line up / down
⌘ + f Find in the current file
⇧ + ⌘ + f Find in all files in the current project

General Navigation

Shortcut Action
⌘ + , Open settings/preferences
⌃ + g Go to line
⌘ + p Go to file
⌘ + r Go to symbol
⌘ + ⇧ + p Toggle Command Palette
⌘ + ⌥ + Left/Right Toggle Files/Tabs
⌘ + w Close Current Window/File if Saved
⌘ + s Save current file
⌘ + ⇧ + } Tab Right
⌘ + ⇧ + { Tab Left
⌘ + z Undo Change
⌘ + y Redo Change