Atom Keyboard Shortcuts
This page lists keyboard shortcuts for the Atom text editor that I find valuable and use a lot. Feel free to fork the page and add your own favorites. Pull Requests welcome!
This list is by no means meant to be a complete listing of every available shortcut. It simply lists the shortcuts that I use on a regular basis. For a complete listing of all available shortcuts, consult the Settings > Keybindings page in Atom.
Since I'm using a Mac, I have mainly listed the keyboard shortcuts macOS. Please feel free to add the Windows or Linux shortcuts.
Where the shortcut is provided by a package, I have added a link to the package.
General
Some general keyboard shortcuts that I use frequently.
Command | macOS | Windows | Linux | Description |
---|---|---|---|---|
Preferences/Settings | cmd, | ctrl, | ctrl, | Opens the Preferences/Settings view |
Command Palette | shiftcmdp | shiftctrlp | ctrlshiftp | Opens & closes the command palette |
Open File (Fuzzy) | cmdp or cmdt |
ctrlp or ctrlt |
ctrlp or ctrlt |
Opens the Fuzzy Finder palette in which you can search and open files |
Browse Open Files | cmdb | ctrlb | ctrlb | Browse tabs within the window |
Previous Tab | altcmdleft | ctrlpageup | ctrlpageup | Cycles left through open tabs (in the active pane) |
Next Tab | altcmdright | ctrlpagedown | ctrlpagedown | Cycles right through open tabs (in the active page) |
Grammar Selector | ctrlshiftl | ctrlshiftl | ctrlshiftl | Selects the language the file is in |
Markdown Preview | ctrlshiftm | ctrlshiftm | ctrlshiftm | Previews the file in the Markdown format |
Key Binding Resolver | cmd. | ctrl. | ctrl. | Shows what keybindings the pressed key combination resolves to |
Toggle Tree View | cmdk cmdb or cmd\ |
ctrlk ctrlb or ctrl\ |
ctrlk ctrlb or ctrl\ |
Toggles Atom's file Tree View |
Reload Atom | ctrlaltcmdl | altctrlr | altctrlr | Reloads the Editor |
Open Link | ctrlshifto | Opens up a HTTP or HTTPS link | ||
Toggle Developer Tools | altcmdi | ctrlalti | ctrlshifti | Opens up the Chrome Developer Tools/Console |
Show Available Snippets | altshifts | altshifts | altshifts | Shows the snippets available to Atom |
Window Management
Command | macOS | Windows | Linux | Description |
---|---|---|---|---|
New File | cmdn | ctrln | ctrln | Opens an empty file in a new tab |
New Window | shiftcmdn | ctrlshiftn | ctrlshiftn | Opens a new editor window |
Open | cmdo | ctrlo | ctrlo | Shows the Open File dialog, which lets you select a file to open in the editor |
Open Folder | cmdshifto | ctrlshifto | ctrlshifto | Shows the Open Folder dialog, which lets you select a folder to add to the editor's Tree View |
Save | cmds | ctrls | ctrls | Saves the currently active file |
Save As | shiftcmds | ctrlshifts | ctrlshifts | Saves the currently active file under a different name |
Save All | altcmds | Saves all changed files | ||
Close Tab | cmdw | ctrlw | ctrlw | Closes the currently active tab |
Close Window | shiftcmdw | ctrlshiftw | ctrlshiftw | Closes the currently active editor window |
Split Window | cmdk β/β/β/β | ctrlk β/β/β/β | ctrlk β/β/β/β | Split the currently active tab in one of the four directions |
Focus Pane | cmdk cmdβ/β/β/β | ctrlk ctrlβ/β/β/β | ctrlk ctrlβ/β/β/β | Move the focus to the pane in one of the four directions |
Toggle full screen | ctrlcmdf | F11 | F11 | Toggle full screen window |
Editing
Command | macOS | Windows | Linux | Description |
---|---|---|---|---|
Duplicate Lines | shiftcmdd | ctrlshiftd | ctrlshiftd | Duplicates the line of the current cursor position and creates a new line under it with the same contents |
Delete Line | ctrlshiftk | ctrlshiftk | ctrlshiftk | Deletes the current line |
Move Line Up | ctrlcmdup | ctrlup | ctrlup | Moves the contents of the current cursor position up one line. If there is a line above with content, the current lines content will swap with the one above it. |
Move Line Down | ctrlcmddown | ctrldown | ctrldown | Moves the contents of the current cursor position down one line. If there is a line below with content, the line's content will swap with the one below it. |
Find/Replace | cmdf | ctrlf | ctrlf | Opens up the Find/Replace panel |
Find Next | cmdg | F3 | F3 | Toggles forward through the results of the current buffer in the file while the Find/Replace panel is active |
Find Previous | shiftcmdg | shiftF3 | shiftF3 | Toggles backward through the results of the current buffer in the file while the Find/Replace panel is active |
Find in Project | shiftcmdf | ctrlshiftf | ctrlshiftf | Opens the Find in Project Panel |
Go To Line | ctrlg | ctrlg | ctrlg | Opens the Go To Line panel |
Go To Matching Bracket | ctrlm | ctrlm | ctrlm | The cursor goes to the matching top bracket that the cursor is ecapsulated in |
Select Line | cmdl | ctrll | ctrll | Selects the entire line the cursor's current position is in |
Toggle Comment | cmd/ | ctrl/ | ctrl/ | Toggles the selected text into a comment of the current grammar |
Column Selection | ctrlshiftβ/β | ctrlaltβ/β | shiftaltβ/β | Allows to select multiple rows, where the same edit will be applied |
Select Same Words | cmdd | ctrld | ctrld | If you select a word, and then hit the key combo for this command, Atom will select the next same word for you. Then you can either type directly (which will replace the old words) or use left or right arrow to append things. |
Undo Selection | cmdu | ctrlu | ctrlu | This undoes the previous selection, like from Select Same Words. |
Select All The Same Words At Once | cmdctrlg | altf3 | altf3 | This shortcut is similar to cmdd/ctrld but it selects all the matching words at once. |
Show Symbols Palette | cmdr | ctrlr | ctrlr | This shortcuts opens a palette that lists all the symbols (or functions) in your current file allowing you to fuzzy search and jump lines. |
Show auto-completions | ctrlspace | ctrlspace | ctrlspace | Show available auto-completions |
Fold/Unfold sections of code | optioncmd[ and optioncmd] | ctrlalt[ and ctrlalt] | ctrlalt[ and ctrlalt] | Fold and Unfold sections of code |
Fold/Unfold at a specific indentation level | cmdk then cmd(0-9) | ctrlk then ctrl(0-9) | ctrlk then ctrl(0-9) | Fold/Unfold at a specific indentation level where the number is the indentation depth |
Various Packages
These are some packages I find useful, and their most useful key bindings. A list of my favorite packages can be found here.
Command | macOS | Windows | Linux | Package |
---|---|---|---|---|
Block Travel up/down | altβ, altβ | Block Travel | ||
Beautify | ctrlaltb | Beautify | ||
Build Project | cmdaltb | ctrlaltb | ctrlaltb | Build |
Expand Abbreviation | shiftcmde | ctrle | ctrle | Emmet |
Git Plus Menu | shiftcmdh | ctrlshifth | ctrlshifth | Git Plus |
Jumpy | shiftenter | Jumpy | ||
Minimap Toggle | ctrlk ctrlm | Minimap | ||
Open File in Browser | ctrlaltm | Open in Browser | ||
Open Project | ctrlcmdp | altshiftp | ctrlaltshiftp | Project Manager |
Sublime Style Column Selection | altmouse | Sublime Style Column Selection |
apm
apm
is Atom's package manager, based on Node's npm
tool.
Command | Description |
---|---|
apm upgrade |
Updates all locally installed packages |
apm upgrade --no-confirm |
Updates all locally installed packages without asking any questions |
apm stars --install |
Β Installs/updates all packages that you have marked as a favorite (starred) in your Atom.io profile |
apm publish minor |
If you're developing your own package, run this in the package's directory to publish a new version of the package, increasing the minor version number by one. |