Atom keyboard shortcuts for Windows, Linux and Mac

Default key bindings of Atom 1.60.0 for Windows / Linux and Mac, read from the keymap files in GitHub's Atom repositories, bundled packages such as Tree View, Find and Replace and the Git tab included. Plain arrow keys, dialog keys and the image viewer are omitted. GitHub announced Atom's sunset and the archiving of its repositories for 15 December 2022. Many commands are sequences such as Ctrl + K, Right; rows marked (Windows) or (Linux) differ between the two.

238 shortcuts in 10 sections. Checked row by row against Atom repository on . Edited by Jay.

General 22

ActionWindows / LinuxMac
Toggle command paletteOpens a searchable list of every command; type part of a name and press Enter to run it.Ctrl+Shift+PCmd+Shift+P
Toggle file finderFuzzy-searches the project files by part of their path; the T key with the same modifier opens it too.Ctrl+PCmd+P
Toggle buffer finderSearches only the files that are already open in the window.Ctrl+BCmd+B
Toggle Git status finderLists just the files that are untracked or changed since the last commit.Ctrl+Shift+BCmd+Shift+B
New fileCtrl+NCmd+N
Open fileShows the system dialog; the Mac command behind this key accepts folders as well as files.Ctrl+OCmd+O
Open folderWindows and Linux only; a Mac opens directories through the ordinary Open command.Ctrl+Shift+O—
Add project folderAdds another directory to the project shown in the current window.Ctrl+Shift+ACmd+Shift+O
SaveCtrl+SCmd+S
Save asWrites the content of the active editor to a different file name.Ctrl+Shift+SCmd+Shift+S
Open settingsOpens the Settings View, where themes and packages are also installed.Ctrl+,Cmd+,
New windowCtrl+Shift+NCmd+Shift+N
Close windowCtrl+Shift+WCmd+Shift+W
Quit Atom (Linux)The Windows keymap has no quit key; only the Linux and Mac files bind one.Ctrl+QCmd+Q
Toggle full screenF11Ctrl+Cmd+F
Toggle developer toolsOpens the Chromium developer tools, used for inspecting the DOM when styling Atom.Ctrl+Shift+ICmd+Option+I
Reload windowCtrl+Shift+F5Ctrl+Cmd+Option+L
Run package specsDeveloper command that runs the test specs of the package open in the window.Ctrl+Shift+YCtrl+Cmd+Option+P
Toggle keybinding resolverShows which keys Atom registered and the command each press triggered.Ctrl+.Cmd+.
Show grammar selectorLets you pick the language used to highlight the file when Atom chose the wrong one.Ctrl+Shift+LCtrl+Shift+L
Show encoding selectorOpens a list of character encodings for the file in the active editor.Ctrl+Shift+UCtrl+Shift+U
Toggle Markdown previewShows or hides the rendered HTML next to the Markdown file being edited.Ctrl+Shift+MCtrl+Shift+M

Tabs and panes 25

A binding written with a comma, such as Ctrl + K, Right, is a key sequence: press the first combination, release it, then press the second key.

ActionWindows / LinuxMac
Close tabCloses the active item of the pane; on Windows and Linux Ctrl + F4 is a second key.Ctrl+WCmd+W
Reopen closed tabBrings back the item that was closed most recently.Ctrl+Shift+TCmd+Shift+T
Next recent tabCycles through tabs in most-recently-used order; releasing Ctrl settles on the tab shown.Ctrl+TabCtrl+Tab
Previous recent tabWalks the same most-recently-used order in the opposite direction.Ctrl+Shift+TabCtrl+Shift+Tab
Next tabFollows the order of the tab bar; a Mac also accepts the right brace with Cmd.Ctrl+Page DownCmd+Option+Right
Previous tabFollows the order of the tab bar; a Mac also accepts the left brace with Cmd.Ctrl+Page UpCmd+Option+Left
Move tab right (Windows)On Windows this needs focus outside a text editor, where the same keys extend the selection by a word.Ctrl+Shift+RightCtrl+Shift+Right
Move tab right (Linux)Reorders the active tab one slot to the right.Ctrl+Shift+Page Down—
Move tab left (Windows)On Windows this needs focus outside a text editor, where the same keys select back to the word start.Ctrl+Shift+LeftCtrl+Shift+Left
Move tab left (Linux)Reorders the active tab one slot to the left.Ctrl+Shift+Page Up—
Show tab 1Jumps to the first tab of the pane; the digits 2 to 9 reach the others.Alt+1Cmd+1
Split pane rightOpens a new pane on the right holding a copy of the active tab.Ctrl+KthenRightCmd+KthenRight
Split pane leftOpens a new pane on the left holding a copy of the active tab.Ctrl+KthenLeftCmd+KthenLeft
Split pane upOpens a new pane above the current one with the active tab duplicated in it.Ctrl+KthenUpCmd+KthenUp
Split pane downOpens a new pane below the current one with the active tab duplicated in it.Ctrl+KthenDownCmd+KthenDown
Close paneCloses the active pane together with every tab in it.Ctrl+KthenCtrl+WCmd+KthenCmd+W
Close other tabs in paneKeeps the active tab and closes the rest of the items beside it.Ctrl+KthenCtrl+Alt+WCmd+KthenCmd+Option+W
Focus next paneCtrl+KthenCtrl+NCmd+KthenCmd+N
Focus previous paneCtrl+KthenCtrl+PCmd+KthenCmd+P
Focus pane aboveCtrl+KthenCtrl+UpCmd+KthenCmd+Up
Focus pane belowCtrl+KthenCtrl+DownCmd+KthenCmd+Down
Focus pane on the leftCtrl+KthenCtrl+LeftCmd+KthenCmd+Left
Focus pane on the rightCtrl+KthenCtrl+RightCmd+KthenCmd+Right
Increase pane sizeGives the active pane a larger share of the split.Ctrl+Alt+=Cmd+Option+=
Decrease pane sizeGives the active pane a smaller share of the split.Ctrl+Alt+-Cmd+Option+-

Editing 36

ActionWindows / LinuxMac
UndoCtrl+ZCmd+Z
RedoReapplies the last undone edit; Z with Shift added is bound to the same command.Ctrl+YCmd+Y
CutCtrl+XCmd+X
CopyCtrl+CCmd+C
PasteCtrl+VCmd+V
Cut (alternative key)Shift+Delete—
Copy (alternative key)Ctrl+Insert—
Paste (alternative key)Shift+Insert—
Paste without reformattingInserts the clipboard text as it is, skipping the automatic re-indentation.Ctrl+Shift+VCmd+Shift+V
Delete lineRemoves the whole line under the cursor; the key is identical on all three systems.Ctrl+Shift+KCtrl+Shift+K
Duplicate linesCopies the current line, or every selected line, directly below.Ctrl+Shift+DCmd+Shift+D
Move line upShifts the current line, or the selected lines, one row higher.Ctrl+UpCtrl+Cmd+Up
Move line downShifts the current line, or the selected lines, one row lower.Ctrl+DownCtrl+Cmd+Down
Join linesPulls the following line up onto the end of the current one.Ctrl+JCmd+J
Toggle line commentsComments out the selected lines, or uncomments them when they already are.Ctrl+/Cmd+/
Indent selected rowsIndents every selected line, wherever the cursor sits within it.Ctrl+]Cmd+]
Outdent selected rowsRemoves one indentation level from every selected line.Ctrl+[Cmd+[
IndentInserts indentation at the cursor; with a snippet prefix before it, the snippet expands first.TabTab
OutdentRuns the same outdent command as the left-bracket shortcut.Shift+TabShift+Tab
New line belowStarts a line under the current one without splitting its text.Ctrl+EnterCmd+Return
New line aboveStarts a line over the current one and moves the cursor there.Ctrl+Shift+EnterCmd+Shift+Return
Upper caseConverts the selection, or the word at the cursor, to capitals.Ctrl+KthenCtrl+UCmd+KthenCmd+U
Lower caseConverts the selection, or the word at the cursor, to small letters.Ctrl+KthenCtrl+LCmd+KthenCmd+L
Delete to word startRemoves the text between the cursor and where the word begins.Ctrl+BackspaceOption+Backspace
Delete to word endRemoves the text between the cursor and where the word finishes.Ctrl+DeleteOption+Delete
Delete to subword startStops at the previous camelCase or snake_case boundary inside the word.Alt+BackspaceCtrl+Option+Backspace
Delete to subword endStops at the next camelCase or snake_case boundary inside the word.Alt+DeleteCtrl+Option+Delete
Copy file pathPuts the path of the file in the active editor on the clipboard.Ctrl+Shift+CCtrl+Shift+C
Reflow selectionHard-wraps the selected text at the preferred line length set in the editor settings.Ctrl+Shift+QCmd+Option+Q
Activate autocompleteOpens the suggestion list at the cursor on demand.Ctrl+SpaceCtrl+Space
Expand snippetTyped after a snippet prefix, replaces the prefix with the body of that snippet.TabTab
Next snippet tab stopInside an expanded snippet, jumps forward to its following placeholder.TabTab
Previous snippet tab stopInside an expanded snippet, returns to the placeholder before the cursor.Shift+TabShift+Tab
Close tagInserts the closing tag for the XML or HTML element that is still open.Ctrl+Alt+.Cmd+Option+.
Remove matching bracketsDeletes the pair of brackets around the cursor and leaves the text between them.Ctrl+Alt+BackspaceCtrl+Backspace
Correct misspellingOpens the list of suggested corrections for the word at the cursor; the colon is typed with Shift.Ctrl+:Cmd+:

Selection and cursors 24

ActionWindows / LinuxMac
Select allCtrl+ACmd+A
Select lineCtrl+LCmd+L
Select next occurrenceAdds the next match of the selected word as an extra selection with its own cursor.Ctrl+DCmd+D
Skip occurrenceDrops the match added last and selects the one after it.Ctrl+KthenCtrl+DCmd+KthenCmd+D
Select all occurrencesSelects every match of the selected word in the file in one step.Alt+F3Ctrl+Cmd+G
Undo selectionSteps back through the matches added one at a time.Ctrl+UCmd+U
Add cursor above (Windows)Puts one more cursor on the line over the current one; Linux uses different keys.Ctrl+Alt+UpCtrl+Shift+Up
Add cursor above (Linux)Puts one more cursor on the line over the current one.Alt+Shift+Up—
Add cursor below (Windows)Puts one more cursor on the line under the current one; Linux uses different keys.Ctrl+Alt+DownCtrl+Shift+Down
Add cursor below (Linux)Puts one more cursor on the line under the current one.Alt+Shift+Down—
Expand selection by syntaxGrows the selection to the next enclosing node of the parsed code.Alt+UpOption+Up
Shrink selection by syntaxNarrows the selection back to the smaller node inside it.Alt+DownOption+Down
Select to word startCtrl+Shift+LeftOption+Shift+Left
Select to word endCtrl+Shift+RightOption+Shift+Right
Select to previous subwordExtends the selection back to the nearest camelCase or snake_case boundary.Alt+Shift+LeftCtrl+Option+Shift+Left
Select to next subwordExtends the selection forward to the nearest camelCase or snake_case boundary.Alt+Shift+RightCtrl+Option+Shift+Right
Select to topExtends the selection from the cursor to the first line of the file.Ctrl+Shift+HomeCmd+Shift+Up
Select to bottomExtends the selection from the cursor to the last line of the file.Ctrl+Shift+EndCmd+Shift+Down
Select to line startStops at the first character on the line.Shift+HomeCmd+Shift+Left
Select to line endShift+EndCmd+Shift+Right
Select page upShift+Page UpShift+Page Up
Select page downShift+Page DownShift+Page Down
Select inside bracketsSelects all the text between the pair of brackets around the cursor.Ctrl+Alt+,Ctrl+Cmd+M
Consolidate selectionsCollapses multiple cursors back into a single one.EscEsc

Find and replace 13

Where the same keys appear in two rows, focus decides, because the binding with the most specific selector wins: Ctrl + Shift + C copies the file path in an editor and toggles the case option in the find panel.

An uppercase letter in a keymap file stands for Shift plus that letter, which is how the line 'cmd-G' becomes Cmd + Shift + G for Find previous on a Mac.

ActionWindows / LinuxMac
Find in bufferOpens the Find and Replace panel for the current file.Ctrl+FCmd+F
Find in projectOpens the panel that searches, and can replace, across every file of the project.Ctrl+Shift+FCmd+Shift+F
Find nextMoves to the following match of the current search text.F3Cmd+G
Find previousMoves to the match before the cursor.Shift+F3Cmd+Shift+G
Find next selectedSearches for the selected text and goes to its following occurrence.Ctrl+F3Cmd+F3
Find previous selectedSearches for the selected text and goes to the occurrence before it.Ctrl+Shift+F3Cmd+Shift+F3
Set find text from selectionLoads the selected text into the find field, ready for Find next.Ctrl+ECmd+E
Set replace text from selectionLoads the selected text into the replace field.Ctrl+Shift+ECmd+Shift+E
Toggle regex optionWorks while the find panel has focus, in buffer search and project search alike.Ctrl+Alt+/Cmd+Option+/
Toggle case optionOnly inside the find panel; in an editor the Windows and Linux keys copy the file path.Ctrl+Shift+CCmd+Option+C
Find allFrom the find panel, turns every match in the file into a selection.Alt+EnterOption+Return
Show previous matchFrom the find panel, steps to the match before the current one.Shift+EnterShift+Return
Replace allWith the cursor in the replace field, replaces every match at once.Ctrl+EnterCmd+Return

Tree view 24

ActionWindows / LinuxMac
Toggle tree viewShows or hides the project tree; the K then B sequence with the same modifier is a second binding.Ctrl+\Cmd+\
Toggle tree view focusMoves keyboard focus into the tree, and back to the editor when pressed again.Alt+\Ctrl+0
Reveal active fileSelects the file of the active tab in the tree; the bar is typed with Shift.Ctrl+|Cmd+|
Add fileWith the tree focused, asks for the path of a new file.AA
Add folderWith the tree focused, asks for the path of a new directory.Shift+AShift+A
Move or rename entryOpens a prompt with the current path for editing; F2 is bound to it as well.MM
Duplicate entryAsks for the path of the copy to create.DD
Delete entryRemoves the selected files or folders; Backspace is bound to it as well.DeleteDelete
Open selected entryOpens the selected file in the editor, or toggles a selected folder.EnterReturn
Expand folderUnfolds the selected directory; L is the Vim-style alternative.RightRight
Collapse folderFolds the selected directory; the left bracket with Ctrl is a second key.LeftLeft
Expand folder recursivelyUnfolds the selected directory together with all its subfolders.Alt+RightOption+Right
Collapse folder recursivelyFolds the selected directory together with all its subfolders.Alt+LeftOption+Left
Select previous entryVim-style alternative to the Up arrow while the tree has focus.KK
Select next entryVim-style alternative to the Down arrow while the tree has focus.JJ
Toggle ignored filesShows or hides the files that the version control system ignores.II
Copy entryCopies the selected files or folders, not text, while the tree has focus.Ctrl+CCmd+C
Cut entryMarks the selected files or folders to be moved by the next paste.Ctrl+XCmd+X
Paste entryPuts the copied or cut files into the selected directory.Ctrl+VCmd+V
Open entry in right splitIn the tree this sequence opens the file in a new pane on the right.Ctrl+KthenRightCmd+KthenRight
Open entry in left splitIn the tree this sequence opens the file in a new pane on the left.Ctrl+KthenLeftCmd+KthenLeft
Open entry in upper splitCtrl+KthenUpCmd+KthenUp
Open entry in lower splitCtrl+KthenDownCmd+KthenDown
Open entry in pane 1Sends the selected file to the first pane; the digits 2 to 9 address the other panes.Ctrl+1Cmd+1

Folding and text size 10

The keymap files name a shifted symbol by its character. Ctrl + Alt + { is the combination the Flight Manual writes as Alt+Ctrl+Shift+[, and the bar, colon and angle bracket keys follow the same convention.

ActionWindows / LinuxMac
Fold current rowCollapses the foldable block that starts at the cursor line.Ctrl+Alt+[Cmd+Option+[
Unfold current rowExpands the folded block at the cursor line.Ctrl+Alt+]Cmd+Option+]
Fold allCollapses every foldable block in the file; the brace means Shift is held with the bracket key.Ctrl+Alt+{Cmd+Option+{
Unfold allExpands every fold in the file; the brace means Shift is held with the bracket key.Ctrl+Alt+}Cmd+Option+}
Unfold all (sequence)Second binding of the same command, built on the K prefix like the fold levels.Ctrl+KthenCtrl+0Cmd+KthenCmd+0
Fold at indentation level 1Folds everything indented one level deep; the digits 2 to 9 fold at deeper levels.Ctrl+KthenCtrl+1Cmd+KthenCmd+1
Fold selectionFolds exactly the selected range; on a US keyboard the Windows and Linux keys coincide with Fold all.Ctrl+Alt+Shift+[Ctrl+Cmd+Option+F
Increase font sizeEnlarges the editor text; the plus key is bound to it as well.Ctrl+=Cmd+=
Decrease font sizeShrinks the editor text; the underscore is bound to it as well.Ctrl+-Cmd+-
Reset font sizeUndoes earlier enlarging and shrinking; on a Mac the Ctrl variant focuses the tree view instead.Ctrl+0Cmd+0

Git and GitHub 31

ActionWindows / LinuxMac
Go to next diffMoves the cursor to the following changed block in the current editor.Alt+GthenDownOption+GthenDown
Go to previous diffMoves the cursor to the changed block before it in the current editor.Alt+GthenUpOption+GthenUp
Toggle diff listLists the changed blocks of the file so you can jump to one.Alt+GthenDOption+GthenD
Focus Git tabMoves focus into the Git panel, opening it when needed, and back again.Ctrl+9Ctrl+9
Toggle Git tabShows or hides the panel used for staging and committing.Ctrl+Shift+9Ctrl+Shift+9
Focus GitHub tabMoves focus into the GitHub panel, where pull requests are shown.Ctrl+8Ctrl+8
Toggle GitHub tabCtrl+Shift+8Ctrl+Shift+8
CommitWorks while the Git tab or its commit message editor has focus.Ctrl+EnterCmd+Return
Commit (sequence)Workspace-wide binding, so it also works from an ordinary editor.Alt+GthenEnterOption+GthenReturn
FetchAlt+GthenFOption+GthenF
PullAlt+GthenShift+FOption+GthenShift+F
PushAlt+GthenPOption+GthenP
Force pushAlt+GthenShift+POption+GthenShift+P
Clone repositoryAlt+Gthen=Option+Gthen=
Open reviews tabAlt+GthenROption+GthenR
Discard changes of selected filesWith unstaged files selected in the Git tab, throws away their changes.Ctrl+BackspaceCmd+Backspace
Jump to fileIn a diff view, opens the file itself; plain O does the same there and in the staging list.Ctrl+OCmd+O
Toggle hunk or line selectionIn a diff view, switches between selecting whole hunks and single lines.Ctrl+/Cmd+/
Discard selected linesIn a diff view, throws away the changes of the selected lines or hunk.Ctrl+BackspaceCmd+Backspace
Submit review commentSends the comment being written in the reviews tab.Ctrl+EnterCmd+Return
Resolve conflict as oursIn a merge conflict, keeps the side of the current branch.Alt+Mthen1Option+Mthen1
Resolve conflict as theirsIn a merge conflict, keeps the side of the branch being merged in.Alt+Mthen2Option+Mthen2
Resolve conflict as baseAlt+Mthen3Option+Mthen3
Resolve conflict as currentKeeps whichever side of the conflict the cursor is in.Alt+MthenEnterOption+MthenReturn
Revert current conflictAlt+MthenROption+MthenR
Open file on GitHubOpens the page of the current file on github.com in the browser.Alt+GthenOOption+GthenO
Open blame on GitHubAlt+GthenBOption+GthenB
Open history on GitHubAlt+GthenHOption+GthenH
Open issues on GitHubAlt+GthenIOption+GthenI
Copy GitHub URLPuts the github.com address of the current file on the clipboard.Alt+GthenCOption+GthenC
Open repository on GitHubAlt+GthenGOption+GthenG

Mac only 29

ActionWindows / LinuxMac
Save allSaves every open file in the window at once.—Cmd+Option+S
Hide Atom—Cmd+H
Hide other applications—Cmd+Option+H
Minimize window—Cmd+M
Zoom window—Ctrl+Cmd+Option+M
Move up (Emacs style)Same effect as the Up arrow, without leaving the home row.—Ctrl+P
Move down (Emacs style)Same effect as the Down arrow, without leaving the home row.—Ctrl+N
Move left (Emacs style)—Ctrl+B
Move right (Emacs style)—Ctrl+F
Go to line start (Emacs style)—Ctrl+A
Go to line end (Emacs style)—Ctrl+E
Go to word end (Emacs style)—Option+F
Go to word start (Emacs style)—Option+B
Cut to line endRemoves the text right of the cursor and keeps it on the clipboard.—Ctrl+K
Transpose charactersExchanges the character before the cursor with the one after it.—Ctrl+T
Delete to line start—Cmd+Backspace
Delete to line end—Cmd+Delete
Select wordSelects the whole word surrounding the cursor.—Ctrl+Shift+W
Split selection into linesTurns a multi-line selection into one cursor per line.—Cmd+Shift+L
Move selection leftShifts the selected text one column to the left.—Ctrl+Cmd+Left
Move selection rightShifts the selected text one column to the right.—Ctrl+Cmd+Right
Remove brackets from selectionStrips the brackets that wrap the selected text.—Ctrl+]
Check out HEAD revisionDiscards the uncommitted changes of the file in the editor; undo restores them.—Cmd+Option+Z
Log cursor scopeShows the grammar scopes that apply at the position of the cursor.—Cmd+Option+P
Show replace fieldOpens the find panel with focus in the replace field.—Cmd+Option+F
Replace nextReplaces the current match and moves on to the following one.—Cmd+Option+E
Toggle whole word optionWorks while the find panel has focus.—Cmd+Option+W
Toggle selection optionIn the find panel, limits the search to the selected text; elsewhere these keys save all files.—Cmd+Option+S
Open linkOpens the URL under the cursor in the browser.—Ctrl+Shift+O

Notes

Palette, finder, buffers

The Command Palette lives on Ctrl + Shift + P (Cmd + Shift + P on a Mac) and the fuzzy file finder on Ctrl + P. Ctrl + B searches only files already open (the buffer finder) and Ctrl + Shift + B only files that are new or changed in Git, which is the fastest way to revisit what a branch touched. Ctrl + \ toggles the tree view, Alt + \ moves focus into it (Ctrl + 0 on a Mac) and Ctrl + | reveals the active file in it.

Multiple cursors and selection

Pressing Ctrl + D grabs the next match of the word under the cursor as an extra cursor, Ctrl + K, Ctrl + D skips one occurrence, and Alt + F3 selects all of them at once. Cursors on the lines above or below come from Ctrl + Alt + Up and Ctrl + Alt + Down on Windows, Alt + Shift + Up and Alt + Shift + Down on Linux, and Ctrl + Shift + Up and Ctrl + Shift + Down on a Mac. Alt + Up and Alt + Down expand and shrink the selection by syntax, and Esc collapses everything back to one cursor. Ctrl + Shift + D duplicates lines and Ctrl + Shift + K deletes them.

Panes and chords

Atom uses Ctrl + K as the prefix of its two-step sequences (Cmd + K on a Mac): Ctrl + K, Right splits the pane to the right (Left, Up and Down likewise), Ctrl + K, Ctrl + W closes a pane and Ctrl + K, Ctrl + N moves focus to the next one. Ctrl + K, Ctrl + U and Ctrl + K, Ctrl + L change the case of the selection. Folding is Ctrl + Alt + [ and Ctrl + Alt + ] for the current row, with the brace variants folding and unfolding everything. Ctrl + Shift + F5 reloads the editor window.

Questions

Is Atom still maintained?

No. GitHub announced on 8 June 2022 that it would sunset Atom and archive every repository of the Atom organization on 15 December 2022, and the atom/atom repository is now read-only. According to that announcement, pre-built binaries stay downloadable from the repository's releases, but there are no more security updates and Atom package management has stopped working.

How do I select every occurrence of a word?

Alt + F3 (Ctrl + Cmd + G on a Mac) grabs every occurrence in one go; Ctrl + D collects them one press at a time.

How do I split the editor?

Ctrl + K, Right splits to the right and the other arrow keys split in their own direction; Ctrl + K, Ctrl + N moves focus between panes. On a Mac the prefix is Cmd + K.

Which key moves focus to the tree view?

Alt + \ on Windows and Linux, Ctrl + 0 on a Mac. On Windows and Linux Ctrl + 0 resets the font size instead.

Sources and checks

24 more source pages

Every row on this page was matched to a line in the documentation above on . A binding that could not be found there is not listed.

Found a wrong or missing key? Tell us and it gets checked against the source. How we verify describes the process and its limits.