Skip to content

File Editor

devxian edited this page Nov 28, 2026 · 6 revisions

English | 한국어

File editor

Use an editor tab to open, edit and save one file. Code locations that an agent shows you also open in this tab.

Cozzle picks the syntax highlighting language from the file extension.^app Highlighting covers Rust, TypeScript and TSX, JavaScript (.js, .jsx, .mjs, .cjs), JSON, HTML, CSS, Markdown, Python, Go, TOML, YAML and Bash (.sh, .zsh and similar).

Open a file

  • Click a file in the Files panel on the right.
  • Run cozzle open in a terminal, or let an agent run it.
cozzle open src/app.rs            # relative to this shell's working folder
cozzle open src/app.rs --line 120 # cursor on line 120
  • If the file is already open, Cozzle switches to that tab instead of opening a new one.
  • The tab opens in the workspace that contains the file. If no workspace contains it, it opens in the current workspace.
  • Files over 2 MB and files that are not UTF-8 text (images, binaries) do not open. A notification gives the reason.^readme

Save

  • Press ⌘S (Ctrl+Shift+S outside macOS) to save.
  • A tab with unsaved changes has ● before its name.
  • If you close a tab with unsaved changes, Cozzle stops the first attempt and shows a notification. Close it again to discard the changes.
  • Saving refreshes the change list in Source Control.

Good to know

  • Editor tabs cannot be duplicated.
  • When a file changes on disk, the open tab does not reload it. Save your changes in the tab before you ask an agent to edit the same file. The guide that Cozzle gives agents says the same.^agent-guide
  • After a restart, editor tabs reopen their files. Tabs whose file was deleted are not restored.

Clone this wiki locally