Shape
Docs

Editing Files

Open, edit, save, and format files in the Shape editor.

The Shape editor is built on Monaco, the same engine that powers VS Code. It provides syntax highlighting, multi-cursor editing, and language-aware features for web projects.

Open and create files

ActionMenuShortcut
Open fileFile → Open FileCtrl+O
Open folderFile → Open FolderCtrl+K Ctrl+O
New fileFile → New Text FileCtrl+N
Quick openGo → Go to File…Ctrl+P

New files from File → New Text File appear in the Explorer when saved. New Scratch File creates a temporary buffer without a path until you save.

Save and close

ActionShortcut
SaveCtrl+S
Save AsCtrl+Shift+S
Save AllCtrl+K S
Close tabCtrl+W
Close all tabsCtrl+K E

Dirty tabs show a dot indicator. The Explorer activity bar badge counts unsaved files.

Basic editing

Standard text operations work as expected:

  • Undo / Redo: Ctrl+Z / Ctrl+Y
  • Cut / Copy / Paste: Ctrl+X / Ctrl+C / Ctrl+V
  • Select All: Ctrl+A

Multi-cursor

Hold Alt and click to add cursors. Use Ctrl+Alt+↑ and Ctrl+Alt+↓ to add cursors on adjacent lines. Ctrl+Shift+L selects all occurrences of the current selection.

Line operations

ActionShortcut
Move line up/downAlt+↑ / Alt+↓
Duplicate line downShift+Alt+↓
Toggle line commentCtrl+/
Toggle block commentShift+Alt+A
Indent / outdentCtrl+] / Ctrl+[

Format document

Format the whole file with Edit → Format Document or Alt+Shift+F. Shape uses Prettier when configured for the project.

Format only the selection via the command palette: Format Selection (Ctrl+K Ctrl+F).

  • Go to Line: Ctrl+G
  • Go to Definition: F12 (requires language support)
  • Go to Bracket: Ctrl+Shift+\
  • Back / Forward: Alt+Left / Alt+Right through cursor history

Word wrap

Toggle wrap from View → Word Wrap or the command palette (Editor: Toggle Word Wrap, Alt+Z).

Auto-save

Enable auto-save in Settings → Editor. Choose delay or save on focus change. See Editor Settings.

Edit