Keyboard shortcuts for the Atom Text Editor mac
, windows
File Management
cmd n
ctrl n
New file (tab)
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
arrow keys
basic movement
cmd shift [ and ]
ctrl PgUp and PgDn
previous and next tabs
cmd 1, 2, 3, etc.
ctrl 1, 2, 3, etc.
go to tab number
cmd k arrow
ctrl k arrow
open pane in direction
cmd k cmd arrow
ctrl shift arrow (overwritten by move/select)
move to pane in direction
cmd k cmd n
ctrl k ctrl n
move to next pane
ctrl 0
alt \
focus tree view
cmd \
ctrl \
toggle tree view
cmd shift \
ctrl shift \
reveal active file in tree
Selection
cmd a
ctrl a
Select all
cmd l
ctrl l
Select line
ctrl shift w
cmd d (once)
ctrl d (once)
select word
ctrl cmd m
ctrl alt ,
highlight code inside current brackets
various
arrows or npfb combined with shift and either alt (by word) or cmd (to begin/end)
various
arrows combined with shift and either alt or ctrl (by word)
Editing Lines
cmd shift d
ctrl shift d
Duplicate line
ctrl shift k
ctrl shift k
Delete line
cmd ctrl 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 shift Enter
ctrl shift enter
New line below
cmd [ and ]
ctrl [ and ]
Indent / outdent selected lines
cmd j
ctrl j
Join lines
ctrl d or delete
delete
delete
ctrl h or backspace
backspace
backspace
various
delete/backspace and alt (by word) or cmd (to begin/end) can be combined to delete in larger chunks
various
delete/backspace and alt (by subword) or ctrl (to word) can be combined to delete in larger chunks
cmd enter
ctrl enter
new line below
shift cmd enter
shift ctrl enter
new line above
Search
cmd f
ctrl f
search within buffer
cmd shift f
ctrl shift f
search within project
cmd g
f3
find next (inside search window)
cmd d
ctrl d
search for next with multiple cursors
cmd e
ctrl e (broken?)
search under cursor
cmd r
ctrl r
go to symbol in file
cmd shift r
ctrl shift r
go to symbol in project
ctrl cmd g
alt f3
multiple cursors for all words same as under cursor
Folding
cmd alt [ and ]
ctrl alt [ and ]
folding
cmd alt shift [ and ]
ctrl alt shift [ and ]
folding everything
Git Integration
alt g d
alt g d
diff list
alt g then b
alt g then b
Open on Github: blame
alt g then c
alt g then c
Open on Github: copy-url
alt g then g
alt g then g
Open on Github: repository
alt g then h
alt g then h
Open on Github: history
alt g then i
alt g then i
Open on Github: issues
alt g then o
alt g then o
Open on Github: file
alt g then r
alt g then r
Open on Github: branch-compare
cmd shift b
ctrl shift b
shows modified files
alt g down and alt g up
alt g down and alt g up
skips to next modification(broken?)
Other Interesting Commands
cmd click
ctrl click
new cursor
ctrl m
ctrl m
jump to paired bracket
ctrl shift m
ctrl shift m
preview document as markdown
cmd alt .
ctrl alt .
close tag
cmd alt p
scopes at cursor (like emacs modes)
alt shift s
view available snippets
ctrl space
ctrl space
autocomplete
ctrl shift l
ctrl shift l
grammar list
cmd shift :
ctrl 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 .
ctrl .
Key Binding Resolver
ctrl shift c
ctrl shift c
Copy current path
What You Might Miss From Emacs
(Readline) andVim
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
emacs macros
vim macros
.
in vim (an easy way to repeat the last command)
sophisticated selection/motion/searching commands
in vim
regex search/replace captures
in vim