Skip to content
AthasDocs
Download

Editing code

Save files, use multiple cursors, fold code, and preview Markdown in Athas.

Updated

On this page

Open a file from the file tree or Quick Open. Changes stay in the editor buffer until you save, unless you enable Auto Save in Settings.

Save and recover tabs

ActionDefault shortcut
Save current fileCmd/Ctrl+S
Save asCmd/Ctrl+Shift+S
Save all filesCmd/Ctrl+Alt+S
New tabCmd/Ctrl+N
Close current tabCmd/Ctrl+W
Reopen closed tabCmd/Ctrl+Shift+T

When sharing or reviewing work, distinguish an unsaved buffer from the file on disk. Share Buffer to Web can include unsaved text; your build and Git tools read saved files.

Multiple cursors and selections

Select a word and use Add Selection To Next Find Match (Cmd/Ctrl+D) to extend the edit to another occurrence. The command palette also offers Select All Occurrences of Find Match, Add Cursor Above, Add Cursor Below, and Remove Secondary Cursors.

Use multiple cursors for repeated local edits. For a project-wide rename or replacement, inspect Search results and use language tooling where available.

Lines, comments and folding

The command palette includes Duplicate Line, Delete Line, Move Line Up/Down, Toggle Comment, Fold All, Unfold All, and folding by level. Supported comment syntax and fold ranges depend on the active language.

Markdown preview

Open a Markdown file and use Preview Markdown from the command palette. The preview follows the current buffer, so you can inspect unsaved changes. Vim users can run :preview.

Configure the editor

Use Settings for font, tab size, wrapping, line numbers, Auto Save, minimap and Vim mode. Formatting is separate from saving; enable format on save if you want both. See Keymaps to inspect the binding for each action in your selected preset.