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 whatever you are running |
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 |
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!
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.
Shortcut |
Action |
⌘ + click |
Create a new cursor where you clicked |
⇧ + ⌃ + Up/Down |
Create a new cursor above below the current one |
Shortcut |
Action |
⌘ + l |
Select the current (l)ine. Press again to select the next line |
⌘ + d |
Select the current wor(d). Press again to select the next instance of that word |
⌘ + ⌃ + g |
Select all instances of the current word |
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 |
Shortcut |
Action |
⌘ + , |
Open 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 |