Editor Selection
Selects which code editor to use.
undefined(default): Smart selection based on context- Monaco on desktop
- CodeMirror on mobile
- CodeJar in lite/readonly/codeblock modes
"auto": Monaco on desktop, CodeMirror on mobile (ignores mode)"monaco": Always use Monaco editor (VS Code editor)"codemirror": Always use CodeMirror 6"codejar": Always use CodeJar (lightweight editor)
Monaco provides the richest features but is larger. CodeMirror is lighter and mobile-friendly. CodeJar is the most lightweight option.
Theme Configuration
App Theme
Sets the overall app theme.
Sets the app accent color. Any valid CSS color value.
Editor Theme
Sets the code editor theme(s). Supports multiple formats:
- Simple theme name:
"vs-dark" - App theme suffix:
"github-light@light"(use when app theme is light) - Editor-specific:
"monaco:twilight","codemirror:one-dark" - Multiple themes:
["vs@light", "vs-dark@dark"]
Simple Theme
Theme per App Theme
github-light. When dark, use github-dark.
Editor-Specific Themes
Combined Format
Available Themes
- Monaco Themes
- CodeMirror Themes
- CodeJar Themes
active4d,all-hallows-eve,amybirds-of-paradise,blackboardbrilliance-black,brilliance-dullcatppuccin-latte,catppuccin-frappecatppuccin-macchiato,catppuccin-mochachrome-devtools,clouds-midnight,cloudscobalt,cobalt2,dawn,draculadreamweaver,eiffel,espresso-libregithub,github-dark,github-lighthc-black,hc-light,idle,idlefingersiplastic,katzenmilch,krtheme,kuroirlazy,magicwb-amigamerbivore-soft,merbivoremonochrome,monochrome-darkmonokai,monokai-bright,monoindustrialnight-owl,nord,oceanic-nextpastels-on-dark,slush-and-poppiessolarized-dark,solarized-lightspacecadet,sunbursttextmate-mac-classic,tomorrowtomorrow-night,tomorrow-night-bluetomorrow-night-bright,tomorrow-night-eightiestwilight,upstream-sunburstvibrant-ink,vs,vs-darkxcode-default,zenburnesque
Typography
Sets the editor font family. Any valid CSS font-family value.
Sets the editor font size in pixels.
Indentation
If
true, use tabs for indentation instead of spaces.Also affects code formatting.Number of spaces per indentation level.Also affects code formatting.
Display Options
Controls line number display.
true: Show absolute line numbersfalse: Hide line numbers"relative": Show relative line numbers (Vim-style)
Enable word wrapping for long lines.
Show code minimap (Monaco only).
Editor Behavior
Auto-close brackets, quotes, and parentheses.
Enable Emmet abbreviations for HTML and CSS.
When
true, regions marked with #region and #endregion comments are automatically folded on load.Code Regions
WhenfoldRegions is enabled:
Editor Modes
Enable alternative keybinding modes.
"vim": Vim keybindings and modal editing"emacs": Emacs keybindingsundefined: Standard editor keybindings
Editor modes are only available in Monaco and CodeMirror editors.
Complete Example
Formatter Settings
These settings control code formatting behavior:Add semicolons when formatting JavaScript/TypeScript code.
Use single quotes instead of double quotes when formatting.
Add trailing commas in multi-line objects and arrays when formatting.
Automatically format code when saving the project.
UI Settings
Additional settings that affect the editor UI:Controls the overall playground layout.
"responsive": Vertical on small screens (when height greater than width), otherwise horizontal"horizontal": Always horizontal split"vertical": Always vertical split
Enable recovery of unsaved changes when reopening the app.
Show element spacing visualization in the result page.
Runtime Configuration
You can change editor settings at runtime:URL Parameters
Many editor settings can be configured via URL parameters:Related Documentation
Configuration Object
Complete configuration reference
Themes
Browse available themes with examples
Code Editor
Learn about editor features
Code Formatting
Code formatting options