Keyboard shortcuts for the Atom Text Editor mac, windows
File Management
cmd nctrl n New file
cmd shift nctrl shift n New Window
cmd octrl o Open file or folder via finder
cmd shift octrl shift o Open folder
cmd p or cmd tctrl p Open file within project
cmd bctrl b Browse list of open files
cmd sctrl s Save
cmd shift sctrl shift s Save as
cmd wctrl w Close tab
cmd shift tctrl shift t Reopen closed item
cmd shift wctrl shift w Close window
Navigation
cmd gctrl 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 arrowopen pane in direction
cmd k cmd arrowmove to pane in direction
ctrl 0 focus tree view
cmd \ toggle tree view
cmd shift \ reveal active file in tree
Selection
cmd lctrl l Select line
ctrl shift wselect word
ctrl cmd mhighlight code inside current brackets
variousarrows or npfb combined with shift and either alt (by word) or cmd (to begin/end)
Editing Lines
cmd shift dctrl 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 Enterctrl enter New line below
cmd [ and ]cmd [ and ] Indent / outdent selected lines
cmd jctrl j Join lines
ctrl d or deletedelete
ctrl h or backspacebackspace
variousdelete/backspace and alt (by word) or cmd (to begin/end) can be combined with arrows and npfb to delete in larger chunks
Search
cmd fsearch within buffer
cmd shift fsearch within project
cmd gfind next (inside search window)
cmd d search for next with multiple cursors
cmd e search under cursor
cmd rgo to symbol in file
cmd shift rgo to symbol in project
ctrl cmd Gmultiple cursors for all words same as under cursor
Folding
cmd alt [ and ]folding
cmd alt shift [ and ]folding everything
Git Integration
alt g ddiff 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 bshows modified files
alt g down and alt g upskips to next modification
Other Interesting Commands
cmd clicknew cursor
ctrl mjump to paired bracket
ctrl shift mpreview document as markdown
cmd alt .close tag
cmd alt pscopes at cursor (like emacs modes)
alt shift sview available snippets
ctrl spaceautocomplete
cntl shift lgrammar list
cmd shift :spell check (won't work on some programming language grammars)
cmd alt ictrl alt i Toggle Developer Tools
cmd ,ctrl , Preferences
cmd shift pctrl shift p Toggle command palette
alt shift salt shift s Show available code snippets
ctrl shift mctrl shift m Markdown preview
cmd .Key Binding Resolver
ctrl shift cCopy current path
What You Might Miss From Readline/Emacs and Vim
ctrl j enter
ctrl wdelete word
ctrl udelete after cursor
ctrl ypaste (yank)
ctrl tswapping 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