Categories
Cheatsheets

Atom Text Editor Shortcuts & Tutorials

Video Tutorials

Free LevelUpTuts Atom Editor Tutorial Series

Keyboard Shortcuts

SELECTIONS

command-shift-L: Split into Lines: Turns a single multi-line selection into multiple single-line selections. Exceptionally useful.

command-right-arrow Takes you to end of line

command-left-arrow Takes you to beginning of line

command-shift-right-arrow Selects to the end of the line.

command-shift-left-arrow Selects to the beginning of the line.

command-click Multiple cursors. One of the greatest things in Atom.

command-d Incremental multi-selection: one item at a time is added to the selection.

command-control-g (group selection) selects all instances of the item you’ve selected

bookmarks command-f2  (on mac need to press FN too because of multi function keys) will set a bookmark, then F2 will cycle through your bookmarks. Very useful.

 

INDENTING

command-] : indent selection

command-[:   selection

Edit > Line > Auto Indent: auto-indent selections based on document structure

 

FILE OPENING OR SELECTING

command-1, command-2, etc: Switches between open tabs

command-option-arrow ( left or right ): Switches sequentially through tabs

command-p: jump between any files (open or unopened) in your project. Really useful.

 

VIEWS

View > Panes: columns, rows, or grids for viewing multiple files.

Drag File: to move a file to a panel, or a new panel, drag it. If you want to create a new panel, drag until you see a “greyed out” area representing the new panel.

 

NAVIGATING

command-f: search. use find next or previous or all

command-p: Go To Anything. You can jump to any file, or any part of a file. When the field for GoToAnything opens, you can start with a hash (#) for a fuzzy search, or a @ for IDs in a file.

 

Miscellaneous Commands

Command-Shift-p: the Command Palette. Gives access to all commands in the program. Also uses fuzzy logic. One of the most important palettes in the program, and very intuitive. For example, if you want to reformat your code so that everything lines up, just press command-shift-p to bring up the command palette and then start typing what you think the likely command is. If I’m thinking “Auto Indent”, I might start typing “Auto”. The program will show me all commands that start with those letters, which helps me remember that the command I’m looking for is auto indent. So very, very useful.

For more shortcuts: