Skip to content

Instantly share code, notes, and snippets.

@TheMatt2
Forked from zhw12/gist:e2e9665fc446678c0fbfd11a025d15c6
Last active December 30, 2018 21:32
Show Gist options
  • Save TheMatt2/6a6ce8683d0f6101262efbcdb17c0847 to your computer and use it in GitHub Desktop.
Save TheMatt2/6a6ce8683d0f6101262efbcdb17c0847 to your computer and use it in GitHub Desktop.
Atom Editor Cheat Sheet

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Contents

Key Symbols

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
  • ↓ : Down arrow key
  • ⌥ : Option or Alt key
  • ↩ : Return or Enter key
  • ⇧ : Shift key

Code Navigation & Management

Task Keystrokes
Cut to End of Line ⌃-K
Delete to Beginning of Word ⌥-⌫
Delete to End of Word ⌥-D
Delete Line ⌃-⇧-K
Duplicate Line ⌘-⇧-D
Go to Line ⌃-G
Go to Matching Bracket ⌃-M
Indent Selected Text ⌘-]
Outdent Selected Text ⌘-[
Join Lines ⌘-J
Move to Beginning of Word ⌥-B
Move to End of Word ⌥-F
Move to Beginning of Line ⌃-A
Move to End of Line ⌃-E
Move Line Up ⌘-⌃-↑
Move Line Down ⌘-⌃-↓
Move to Top of File ⌘-↑
Move to Bottom of File ⌘-↓
Move to First Character of Line ⌘-←
Move to Last Character of Line ⌘-→
New Line Below ⌘-↩
Select Left Character ⌘-⌃-B
Select Right Character ⌘-⌃-F
Select to Beginning of Word ⌥-⇧-B
Select to End of Word ⌥-⇧-F
Select Entire Word ⌃-⇧-W
Select to First Character of Line ⌥-⇧-A
Select to Last Character of Line ⌥-⇧-E
Select to Same Position, Next Line ⌥-⇧-N
Select to Same Position, Previous Line ⌥-⇧-P
Select to Top of File ⌘-⇧-↑
Select to Bottom of File ⌘-⇧-↓
Select All ⌘-A
Select Next ⌘-D
Select Line ⌘-L
Toggle Line Comments ⌘-/
Multiple cursors ⌘-<click>

The Command Palette

Task Keystrokes
Open Command Palette ⌘-⇧-P

Configuration

Task Keystrokes
Open Configuration Editor ⌘-,

Application Tasks

Task Keystrokes
Hide Application ⌘-H
Hide Other Applications ⌘-⌥-H
Minimize Application ⌘-M
New File ⌘-N
New Window ⌘-⇧-N
Open Application ⌘-O
Open Dev ⌘-⇧-O
Quit ⌘-Q

Bookmarks

Task Keystrokes
Toggle Bookmark ⌘-F2
View All Bookmarks ⌃-F2
Jump to Next Bookmark F2
Jump to Previous Bookmark ⇧-F2
Clear All Bookmarks ⌘-⇧-F2

Brackets

Task Keystrokes
Find Matching Bracket ⌃-M

Code Folding

Task Keystrokes
Fold Code ⌘-⌥-[
Unfold Code ⌘-⌥-]
Fold at Indentation Level N ⌘-K, ⌘-N
Fold Selected Text ⌘-⌥-⌃-F
Unfold All Code ⌘-K, ⌘-0

Character Transformations

Task Keystrokes
Convert Tabs to Spaces ⌘-⌥-[
Convert Spaces to Tabs ⌘-⌥-]
Convert to Upper Case ⌘-K-U
Convert to Lower Case ⌘-K-L

Comments

Task Keystrokes
Toggle Comment ⌘-/

Editor View Tasks

Task Keystrokes
Split Panes Vertically ⌘-K-↓
Split Panes Horizontally ⌘-K-→
Vertical Navigation Panes ⌘-K, ⌘-↓
Horizontal Navigation Panes ⌘-K, ⌘-→
Toggle Full Screen ⌘-⌃-F
Toggle Tree View ⌘-\
Switch Previous Tab ⌘-⇧-[
Switch Next Tab ⌘-⇧-]

File Tasks

Task Keystrokes
Fuzzy Find Files ⌘-T
Find Open File ⌘-B
Find Modified, Untracked (git) File ⌘-⇧-B
Open Tree View ⌃-0
Toggle Tree View ⌘-\
Add a File (Tree View) A
Move a File (Tree View) M
Delete a File (Tree View)
Reopen Last File ⌘-⇧-T

Find & Replace

Task Keystrokes
Find String in Current File ⌘-F
Find String in All Project Files ⌘-⇧-F
Find Next Matching String ⌘-G
Find Previous Matching String ⌘-⇧-G
Select Next Matching String ⌘-D
Select All Matching Strings ⌘-⌃-G
Replace String in Current File ⌘-⌥-F

Font Tasks

Task Keystrokes
Increase Font Size ⌘-+
Decrease Font Size ⌘--

Grammar

Task Keystrokes
Select Grammar ⌃-⇧-L
Task Keystrokes
Search for Symbol ⌘-R
Search for Symbol Across Project ⌘-⇧-R

Plugins

Task Keystrokes
Markdown Preview ⌘-⇧-M
Atom Beautify ⌃-⌥-B
Toggle Remote FTP ⌃-⌥-O
Terminal ⌃-`
Key Binding Resolver ⌘-.
Run Scripts ⌘-i
Run Cell ⌘-↩
Run Cell and Move Down ⇧-↩
Go to Definition ⌃-⌥-G
Go to Definition ⌘-⌃-G
Select All String ⌃-⌥-E
Refractor ⌃-⌥-U

Terminal Plus

Task Keystrokes
Create a New Terminal ⌘-⇧-T or ⌃-⇧-T
Toggle Last Active Terminal ⌃-`
Switch to Terminal Left of Last Active Terminal ⌘-⇧-J or ⌃-⇧-J
Switch to Terminal Right of Last Active Terminal ⌘-⇧-K or ⌃-⇧-K
Run Selected Text as Command in Active Terminal ⌃-⌫
Close Active Terminal ⌘-⇧-X or ⌃-⇧-X

Git Plus

Task Keystrokes
Show Current Status ⌘-⇧-A, S
Add Current File ⌘-⇧-A
Commit Current File and Push ⌘-⇧-A, p
Commit Every Changed File and Push ⌘-⇧-A, P
Commit Staged Changes (Shows a commit message editor. Save the file to make the commit. Close the tab to cancel the commit.) ⌘-⇧-C
Add Current File and Show Commit (Similar to Git add all and Git commit.) ⌘-⇧-A, C
Add All Files and Show Commit (Similar to Git add all and Git commit.) ⌘-⇧-A, A

Further Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment