Code Editor

A Monaco-powered code editor with 60+ language support, diff view, Vim mode, and LSP integration — right alongside your terminal.

Scape includes a built-in code editor powered by Microsoft's Monaco (the engine behind VS Code). It sits alongside your terminal so you can read, edit, and review code without switching apps. Syntax highlighting covers 60+ languages — JavaScript, TypeScript, Python, Swift, Rust, Go, Ruby, Java, C/C++, SQL, HTML/CSS, YAML, JSON, Markdown, Shell, Dockerfile, Terraform, and more.

Opening files

Files open in the editor from multiple entry points:

  • Sidebar file browser — click any file.
  • Terminal — Cmd+click a file path (line numbers supported, e.g. src/app.ts:42).
  • MCP tools — agents use open_file to open files programmatically.
  • Search results — Find-in-Files and Search Everywhere results open on click.
  • Go-to-definition — Cmd+click a symbol to jump to its definition.

Files already open are re-selected rather than duplicated. Binary or large files (>5 MB) open in a QuickLook preview; media files open in a separate viewer.

Features

  • Line numbers and current-line highlighting
  • Word wrap toggle
  • Vim mode — toggle in the editor toolbar
  • Markdown preview — rendered preview for .md files
  • Cmd+S to save
  • LSP integration — completions, hover info, and references (when available)
  • Scroll position preserved across tab switches
  • Configurable font — Cascadia Code NF or IBM Plex Mono, with adjustable size

Diff view

Compare the current file against its last committed version:

  • Open via Show Diff in the file toolbar ellipsis menu.
  • Shows git show HEAD:<file> vs. current content side-by-side.
  • Navigate between hunks with next/prev buttons and a change counter (e.g. "2/5").

Tab bar

The editor tab bar supports multiple content types — files, notes, playbooks, tables, web pages, and more. Tabs show dirty indicators for unsaved changes and support back/forward navigation history.

Settings

Accessible from the editor toolbar:

  • Vim mode on/off
  • Markdown preview on/off
  • Show Diff
  • Open on GitHub
  • Git history (version timeline with restore)
  • Font family and scale