Atom Docs

Commands

Atom features a powerful command-line interface for executing editor commands. You can enter command mode by pressing : in Normal mode.

File Operations

CommandDescription
:w, :writeWrite (save) the current buffer
:wa, :wallWrite all modified buffers
:q, :quitQuit the current window
:qa, :qallQuit all windows
:wqSave and quit
:xSave and quit
:wqa, :xaSave all buffers and quit
:e <path>, :edit <path>Edit a file at the specified path
:Reload, :e!Reload the current file from disk

Buffer Management

CommandDescription
:bn, :bnextGo to the next buffer
:bp, :bprevGo to the previous buffer
:bd, :bdeleteDelete (close) the current buffer

Splits

CommandDescription
:sp, :splitSplit window horizontally
:vsp, :vsplitSplit window vertically

Plugin Commands

CommandDescription
:colorschemeChange the colorscheme (opens picker if no arg)
:NucleusOpen the Nucleus package manager
:checkhealthOpen the Nucleus package manager
:TreesitterManagerOpen the Tree-sitter manager
:TroubleToggle the Trouble diagnostic view
:format, :FormatFormat the current buffer using LSP
:FormatAllFormat all open buffers
:FormatEnableEnable autoformat on save
:FormatDisableDisable autoformat on save
:gdGo to definition (LSP)
:LspInfoShow LSP client information
:LspRestartRestart LSP clients

Settings

CommandDescription
:set numberEnable line numbers
:set nonumberDisable line numbers
:set relativenumberEnable relative line numbers
:set norelativenumberDisable relative line numbers
:configSave current session configuration
:helpOpen the keybindings help view