File Editor V2

A unified file editor that switches between a plain text mode and structured JSON, XML, YAML, Markdown, or CSV workspaces based on the active file extension.

What you can do

  • Edit any text file with syntax highlighting and Prettier Format (plain mode)
  • Open structured extensions in a multi-pane workspace (raw editor, center preview pane, inspector)
  • Toggle panes with Raw, a center control (Tree, API, or Preview), and Inspector when applicable
  • Explore OpenAPI 3.x specs with an embedded Scalar API reference (paths, schemas, try-it-out)
  • Paste, upload, download, and copy from the shared toolbar
  • Receive one-shot text handoffs from other tools via handoffToFileEditorV2

Content is saved automatically while you work in this browser.

Layout

Plain mode

For files without a structured extension (or untitled buffers):

  • Language picker and Format in the toolbar
  • Full-height Monaco editor
  • Status bar with cursor, size, and language

Structured mode

Toolbar order is always Raw → center → Inspector (when each applies).

PanePurpose
RawMonaco editor with parse error markers
CenterOne pane at a time: Tree (JSON/YAML/XML), API (OpenAPI 3.x), or Preview (Markdown/CSV)
InspectorFormat, convert, and selection actions (hidden for Markdown)

Center control behavior

  • One option (e.g. XML → Tree, Markdown → Preview): a single toggle labeled Tree or Preview.
  • Two options (OpenAPI YAML/JSON → Tree + API): toggle shows the active mode; chevron menu switches Tree / API. Click toggles the center pane on/off.
  • Tree and API are mutually exclusive and share one column. Your last Tree/API choice is remembered for the session.

Pane visibility is stored globally. OpenAPI files auto-enable API the first time you open them in a session.

Toolbar

ActionEffect
RawShow or hide the source editor
CenterShow or hide Tree / API / Preview (label matches active mode)
InspectorShow or hide the inspector (not shown for Markdown)
Upload / Download / Copy / Paste / FullscreenFile and clipboard actions

At least one pane stays visible.

OpenAPI API reference

When your YAML or JSON parses successfully and includes an openapi field starting with 3., the center control offers Tree and API via a dropdown.

  • Live updates from the raw editor (debounced)
  • Try-it-out requests from Scalar (browser CORS applies)
  • Cmd+K opens devtools plugin search (not Scalar search)
  • Swagger 2.x is detected in the inspector but not rendered in the API pane

Export OpenAPI from API Client, hand off to File Editor v2, edit, then import back with merge.

YAML notes

YAML files always edit as YAML. Use Convert to JSON in the inspector to switch the file to JSON mode and update the extension.

Keep in mind

Single document per tab — no project tree or linting beyond parse validation. Binary files are not supported. The API reference viewer loads on demand when you first show the API view.

App shortcuts

ActionShortcut
Search tools⌘ K
Close current tab⌘⌥E (Ctrl+Alt+E on Windows)

Note: ⌘W closes the browser tab. ⌘⇧E focuses the Explorer in Cursor/VS Code. Use ⌘⌥E (Ctrl+Alt+E) to close the current tool tab (click inside the app first so the IDE does not steal the shortcut).