Catalog / Atom Editor Cheatsheet

Atom Editor Cheatsheet

A comprehensive guide to the Atom editor, covering essential shortcuts, features, and customization options for efficient coding.

Core Functionality

Basic Navigation

Ctrl+P

Open file by name (fuzzy search).

Ctrl+Shift+P

Open command palette.

Ctrl+B

Toggle the tree view (project explorer).

Ctrl+G

Go to line.

Ctrl+R

Go to symbol.

Ctrl+Shift+R

Go to symbol in project.

Ctrl+Tab

Switch between tabs.

Editing Basics

Ctrl+X

Cut line.

Ctrl+C

Copy line.

Ctrl+V

Paste.

Ctrl+Z

Undo.

Ctrl+Shift+Z

Redo.

Ctrl+/

Toggle comment.

Ctrl+Shift+K

Delete line.

Selection

Ctrl+D

Select word.

Ctrl+Shift+Up/Down

Expand selection to line.

Ctrl+Shift+Left/Right

Select word to left/right.

Alt+Shift+Up/Down

Column select up/down.

Find and Replace

Find

Ctrl+F

Find in current file.

Ctrl+Shift+F

Find in project.

F3

Find next.

Shift+F3

Find previous.

Replace

Ctrl+H

Replace in current file.

Ctrl+Shift+H

Replace in project.

Alt+Enter

Select all occurrences of the current selection.

Find Buffer

Atom remembers your search queries. Use Up and Down arrows in the find panel to navigate through your search history.

Panels and Workspaces

Panel Management

Ctrl+K Up

Focus next panel above.

Ctrl+K Down

Focus next panel below.

Ctrl+K Left

Focus next panel to the left.

Ctrl+K Right

Focus next panel to the right.

Workspace Layout

Atom allows you to split your workspace into multiple panes for side-by-side editing. You can drag tabs to rearrange them.

Use Ctrl+K followed by an arrow key to move between panes.

Saving Sessions

Atom remembers your open files and workspace layout across sessions. Simply close and reopen Atom to restore your previous working state.

Package Management & Customization

Package Management

Ctrl+Shift+P

Open the command palette and type Install Package to find and install new packages.

Settings > Install

Alternatively, open Settings and navigate to the ‘Install’ section to search for packages.

apm

Use the Atom Package Manager (apm) in the command line for advanced package management. apm install <package-name>

Settings Customization

Atom is highly customizable through its Settings panel (Ctrl+,). You can adjust settings for core behavior, installed packages, and themes.

Customize the editor’s behavior, keybindings, and UI to match your workflow.

Keybindings

Atom allows you to customize keybindings by editing the keymap.cson file. Open it via File > Keymap....

Example:

'atom-text-editor':
  'ctrl-alt-t': 'editor:toggle-line-comments'