Keyboard shortcuts for the Atom Text Editor mac
, windows
File Management
cmd n
ctrl n
New file
cmd shift n
ctrl shift n
New Window
cmd o
ctrl o
Open file or folder via finder
cmd shift o
ctrl shift o
Open folder
cmd p or cmd t
ctrl p
Open file within project
cmd b
ctrl b
Browse list of open files
cmd s
ctrl s
Save
cmd shift s
ctrl shift s
Save as
cmd w
ctrl w
Close tab
cmd shift t
ctrl shift t
Reopen closed item
cmd shift w
ctrl shift w
Close window
Navigation
cmd g
ctrl g
Go to line
arrow keys
basic movement
cmd shift [ and ]
previous and next tabs
cmd 1, 2, 3, etc.
go to tab number
cmd k arrow
open pane in direction
cmd k cmd arrow
move to pane in direction
ctrl 0
focus tree view
cmd \
toggle tree view
cmd shift \
reveal active file in tree
Selection
cmd l
ctrl l
Select line
ctrl shift w
select word
ctrl cmd m
highlight code inside current brackets
various
arrows or npfb combined with shift and either alt (by word) or cmd (to begin/end)
Editing Lines
cmd shift d
ctrl shift d
Duplicate line
ctrl shift k
ctrl shift k
Delete line
cmd Up Arrow / Down Arrow
ctrl Up Arrow / Down Arrow
Move line up/down
cmd /
ctrl /
Toggle comment line
cmd Enter
ctrl enter
New line below
cmd [ and ]
cmd [ and ]
Indent / outdent selected lines
cmd j
ctrl j
Join lines
ctrl d or delete
delete
ctrl h or backspace
backspace
various
delete/backspace and alt (by word) or cmd (to begin/end) can be combined with arrows and npfb to delete in larger chunks
Search
cmd f
search within buffer
cmd shift f
search within project
cmd g
find next (inside search window)
cmd d
search for next with multiple cursors
cmd e
search under cursor
cmd r
go to symbol in file
cmd shift r
go to symbol in project
ctrl cmd G
multiple cursors for all words same as under cursor
Folding
cmd alt [ and ]
folding
cmd alt shift [ and ]
folding everything
Git Integration
alt g d
diff list
alt g then b
Open on Github: blame
alt g then c
Open on Github: copy-url
alt g then g
Open on Github: repository
alt g then h
Open on Github: history
alt g then i
Open on Github: issues
alt g then o
Open on Github: file
alt g then r
Open on Github: branch-compare
cmd shift b
shows modified files
alt g down and alt g up
skips to next modification
Other Interesting Commands
cmd click
new cursor
ctrl m
jump to paired bracket
ctrl shift m
preview document as markdown
cmd alt .
close tag
cmd alt p
scopes at cursor (like emacs modes)
alt shift s
view available snippets
ctrl space
autocomplete
cntl shift l
grammar list
cmd shift :
spell check (won't work on some programming language grammars)
cmd alt i
ctrl alt i
Toggle Developer Tools
cmd ,
ctrl ,
Preferences
cmd shift p
ctrl shift p
Toggle command palette
alt shift s
alt shift s
Show available code snippets
ctrl shift m
ctrl shift m
Markdown preview
cmd .
Key Binding Resolver
ctrl shift c
Copy current path
What You Might Miss From Readline/Emacs and Vim
ctrl j
enter
ctrl w
delete word
ctrl u
delete after cursor
ctrl y
paste (yank)
ctrl t
swapping chars is one character off, doesn't allow a correction without extra typing (left first)
alt t
swapping words
{ and } in vim or alt-e/alt-a in emacs
for moving by paragraph
ctrl [
escape
ctrl o/i
for last cursor position
:!
for arbritrary shell commands
- registers and kill/yank rings
- tags are still implemented/updated with ctags manually
- macros
- number prefixes/infixes for commands (for movement, etc)
- an easy way to repeat the last command
- highlighting up till search