Skip to main content
Guides

Editor Basics

Layout orientation, split panes, command palette, and core editor features.

The Odyn editor is a browser-based code environment built on Monaco (the engine behind VS Code). This guide covers the layout, navigation, and core features.

Layout

The editor has four main zones:

ZonePositionPurpose
Activity barLeft edgeSwitch between views (Explorer, Deploy, Dependencies, etc.)
SidebarLeft panelFile tree, search, settings (toggle with Cmd+B)
Editor panesCenterCode editing area, supports split views
Status barBottomCursor position, language, encoding, errors, unsaved files

Split Panes

Split the editor to view multiple files side by side.

ActionShortcut
Split horizontal (side by side)Cmd+\
Split vertical (stacked)Cmd+Shift+\
Resize pane leftCtrl+Shift+← (planned)
Resize pane rightCtrl+Shift+→ (planned)
Resize pane upCtrl+Shift+↑ (planned)
Resize pane downCtrl+Shift+↓ (planned)

Each pane maintains its own open tabs and selected file. Drag tabs between panes to move files.

Command Palette

Press Cmd+Shift+P to open the command palette. It lists all available commands grouped by category, with keyboard shortcuts shown inline. Type to filter.

Quick Open

Press Cmd+P to fuzzy-search files by name. Select a result and press Enter to open the file in the active pane.

Go to Line

Press Cmd+G to jump to a specific line number. Enter a number (e.g., 42 or :42) and press Enter.

Problems Panel

Press Cmd+Shift+M to toggle the problems panel. It displays TypeScript, ESLint, and CSS diagnostics grouped by file. Click a diagnostic to navigate to the error location.

Diagnostics are color-coded by source:

SourceBadge Color
TypeScriptBlue
ESLintPurple
CSSOrange
OdynYellow

Code Formatting

Press Cmd+Shift+F to format the current file using the Monaco built-in formatter. Format-on-save is configurable in editor settings (Cmd+,).

Editor Settings

Press Cmd+, to open settings. Configurable options:

  • Font size and tab size (2, 4, or 8 spaces)
  • Word wrap toggle
  • Minimap toggle
  • Indent type (spaces or tabs)
  • Line endings (LF or CRLF)
  • Encoding (UTF-8, ASCII, ISO-8859-1, UTF-16 LE, UTF-16 BE)
  • Theme selection (see below)

Themes

Select a theme from editor settings:

  • Dark (default)
  • Light
  • High Contrast
  • System (follows OS preference)
  • Monokai, Solarized Dark, Solarized Light, Abyss, Kimbie Dark

Status Bar

The status bar at the bottom displays:

  • Cursor position (line:column)
  • Language mode with auto-detection (click to override)
  • Indentation type and size
  • Encoding and line endings
  • Problems count (errors and warnings)
  • Unsaved files indicator

File Tabs

  • Single-click a file in the tree to open in preview mode (italic tab title, replaced by next preview).
  • Double-click or press Enter from Quick Open to pin the tab (regular title, stays open).
  • Right-click a tab for options: Close, Close Others, Move to Left/Right Pane.

Key Shortcuts

For the full shortcut table, see Keyboard Shortcuts.

ShortcutAction
Cmd+SSave current file
Cmd+BToggle sidebar
Cmd+PQuick Open
Cmd+Shift+PCommand palette
Cmd+GGo to line
Cmd+Shift+MToggle problems panel
Cmd+Shift+FFormat document
Cmd+\Split horizontal
Cmd+Shift+\Split vertical
Cmd+,Editor settings

Verification

Open the editor and confirm:

  1. Cmd+Shift+P opens the command palette with searchable commands.
  2. Cmd+P lists project files by name.
  3. Cmd+\ splits the editor into two side-by-side panes.
  4. Cmd+Shift+M opens the problems panel at the bottom.
  5. Saving a file (Cmd+S) triggers format-on-save if enabled.