XCODX IDE Editor DOCS
Help Center
Open Editor
Complete Documentation — v31

Master XCODX IDE Editor

The most powerful browser-based IDE. Write, compile, preview and audit HTML, CSS, JavaScript, Vue, React, TypeScript and 70+ languages — zero install, zero config.

Getting Started Keyboard Shortcuts Runtime Compiler Lighthouse Audit
Monaco Editor
Full VS Code editor engine. IntelliSense, multi-cursor, code folding, minimap, 190+ syntax themes.
Runtime Compiler
Vue SFCs · JSX · TSX · TypeScript — compiled in-browser. No webpack, no Node.js, no build step.
Live Preview
Instant hot-reload via preview.xcodx.io subdomain. Full navigation, HTTPS, Service Worker.
Lighthouse Audit
88% Lighthouse accuracy. Performance · Accessibility · SEO · Best Practices — inside the editor.
70+ Languages
Execute Python, Java, C, C++, Go, Rust, Ruby, PHP via self-hosted Piston API. No install needed.
PWA Offline
Installable Progressive Web App. Works offline. Projects persist in IndexedDB — no account needed.

Browse Documentation

File Management
11 commands
Editing
18 commands
View & Layout
18 commands
Navigation
9 commands
Tools
4 commands
Run & Execute
4 commands
Settings & Modes
19 commands
Quick tip
Press Ctrl+Shift+P inside the editor to open the Command Palette — access every feature by typing its name.

Complete command and shortcut reference

Every command in the XCODX editor, grouped the way the menus group them, with its default keyboard shortcut. On a Mac, use Cmd where this table says Ctrl and Option where it says Alt. Any command can also be run by name from the Command Palette (Ctrl+Shift+P). Shortcuts are the defaults; you can change them in the editor's keyboard settings.

Start here: open the editor · embed the editor in your site · online compilers · framework playgrounds.

File Management

Create, open, save, export, and import project files.

CommandShortcutWhat it does
New FileCtrl+NCreates a blank file in your project instantly. You can name it anything — the editor auto-detects the language from the extension and activates the right syntax highlighting and IntelliSense.
Open FileCtrl+OLets you pull any file from your local device into the current project. The file is stored in IndexedDB so it persists across sessions without needing your device again.
Save FileCtrl+SPersists the active file to IndexedDB. Even without saving, XCODX auto-saves — but explicit save triggers format-on-save and trim-whitespace if enabled.
Save All FilesCtrl+Shift+SOne action to flush every unsaved change across all open files. Useful before exporting a zip or sharing your project.
Rename FileF2Renames the file in-place inside the project. All open tabs referencing that file update their labels automatically.
Delete FileDeletePermanently removes the file from the project. There is no trash — confirm before deleting important files.
Export Project (.zip)—Packages your entire project (all files and folders) into a standard .zip you can download, share, or re-import later. Ideal for backup and collaboration.
Import Project (.zip)—Extracts a .zip archive and imports all its files preserving the folder tree. Drag a zip directly onto the editor for instant import.
Export Settings (JSON)—Saves all your editor preferences to a JSON file. Share your setup with a colleague or restore it after clearing browser data.
Import Settings (JSON)—Restores settings from a previously exported JSON. Useful for onboarding new devices or reverting to a known good configuration.
New ProjectCtrl+Alt+NCreate a named project from a framework starter (HTML, React, Vue, Angular, Svelte, Solid and more), an empty shell, or a file/folder/zip on disk.

Editing

Multi-cursor, find & replace, format, comment, indent, and undo.

CommandShortcutWhat it does
FindCtrl+FOpens an inline search bar inside the editor. Supports plain text and regular expressions. Results are highlighted across the file as you type.
Find & ReplaceCtrl+HFind any string or regex and replace it — one occurrence or all at once. Case-sensitive and whole-word options available.
Add Cursor at ClickAlt+ClickPlace cursors at multiple positions and type simultaneously. Ideal for renaming multiple variables, editing JSON arrays, or any repetitive change across scattered lines.
Select WordCtrl+DSelects the word under the cursor. Press again to jump to and select the next occurrence — a fast way to rename a symbol across a file.
Select All OccurrencesCtrl+Shift+LSelects every occurrence of the highlighted text simultaneously. Type to replace all of them at once — faster than find-and-replace for simple renames.
Move Line UpAlt+↑Moves the current line (or selected block) up without cut/paste. Much faster for reordering CSS rules, object keys, or function calls.
Move Line DownAlt+↓Same as above but moves down. Hold and repeat to quickly reposition code blocks anywhere in the file.
Duplicate Line DownAlt+Shift+↓Inserts an exact copy of the current line directly below. Saves time when creating similar lines with minor variations.
Delete LineCtrl+Shift+KRemoves the entire line in one keypress — no need to select from start to end. Does not affect the clipboard.
Toggle Line CommentCtrl+/Adds or removes the appropriate comment syntax for the current language (// for JS, # for Python, <!-- --> for HTML). Works on single lines and multi-line selections.
Toggle Block CommentCtrl+Shift+/Wraps a selection in a block comment. Useful for temporarily disabling a section of code.
Format DocumentShift+Alt+FRe-indents and reformats the entire file using language-appropriate rules. Keeps code style consistent across the team without manual effort.
Indent LineTabIncreases the indentation level of the selected lines. Works with both spaces and tabs based on your editor settings.
Outdent LineShift+TabDecreases indentation. Useful when restructuring nested code that needs to move to an outer scope.
UndoCtrl+ZSteps backward through your edit history one action at a time. XCODX keeps a deep undo stack even across file switches.
RedoCtrl+YReplays undone actions. If you undo too many steps, redo brings them back one at a time.
Select AllCtrl+ASelects the entire file contents. Useful before copying, deleting, or replacing everything at once.
Custom Snippets—Create, edit, and insert your own reusable code snippets with tab-stops and placeholders. They appear in IntelliSense as you type their prefix.

View & Layout

Toggle panels, theme, zen mode, word wrap, and minimap.

CommandShortcutWhat it does
Command PaletteCtrl+Shift+PYour single access point to every feature in XCODX. Start typing any word and matching commands appear instantly — no need to memorize menu paths.
Quick Open FileCtrl+PFuzzy-finds any file in the project by name. Start typing a fragment of the filename and jump to it in milliseconds.
Explorer Search Filter—Filter the sidebar file tree as you type. The search matches anywhere in the path, case-insensitive, so folder names match too — typing "components" surfaces every file inside any "components" folder. Folders that contain at least one match expand automatically without disturbing your manual open/close state, and a friendly empty-state appears when nothing matches. Press Esc or click the X to clear the filter; your folder open/close state restores exactly as it was. Different from Quick Open (Ctrl+P) — this filters the explorer in place rather than opening a separate fuzzy switcher.
Toggle SidebarCtrl+BHides the file explorer to reclaim screen space for the editor. Press again to bring it back. A useful toggle during focused coding sessions.
Toggle ConsoleCtrl+`Shows or hides the integrated console that captures all console.log, error, and warn output from the live preview.
Toggle Preview Pane—Toggles the live preview pane visible or hidden. Useful when you want full-width editor space.
Toggle UI ThemeCtrl+K Ctrl+TFlips between dark and light mode for the entire editor UI. Your preference is saved and persists across sessions.
Editor Theme—Changes the syntax highlighting color scheme. Options include GitHub Dark, GitHub Light, Monokai, Dracula, Solarized, and more.
Zen ModeCtrl+K ZHides every panel, toolbar, and chrome element — leaving only the editor and your code. Perfect for deep focus sessions.
FullscreenF11Expands XCODX to fill the entire browser window, removing the browser chrome for maximum workspace.
Clear Console—Empties all output from the console panel. Useful for a clean slate before running a test.
Toggle Minimap—The minimap is a zoomed-out overview of the file rendered on the right edge. Click any area to jump instantly to that section.
Toggle Word WrapAlt+ZWhen on, long lines wrap at the viewport edge instead of requiring horizontal scroll. Helpful for reading Markdown or long CSS values.
Toggle Sticky Scroll—Keeps the header of the current scope (function name, class name, if block) pinned at the top while you scroll through its body. Never lose your place in a long file.
Toggle Markdown Preview—Renders .md files in the preview pane with KaTeX math, Mermaid diagrams, syntax highlighting, and bidirectional scroll sync. Also renders .ipynb Jupyter notebooks.
Toggle Compiled Output—Replaces the preview with the code the browser actually runs for the active file: JSX and TypeScript become JavaScript, SCSS and Less become CSS, Pug becomes HTML. It follows your edits and tab switches, explains files that need no compiling, and shows compile errors in place. Use the {} button in the preview toolbar or the Command Palette.
Find in All FilesCtrl+Shift+FSearch text across every file in the project at once from the command palette. Jump straight to any match.
Project Switcher—Open the project switcher to jump between saved projects, create a new one, or delete an old one — all stored locally in your browser.

Navigation

Jump to lines, definitions, symbols, tabs, and brackets.

CommandShortcutWhat it does
Go to LineCtrl+GJumps the cursor to an exact line number. Combine with error messages that report line numbers to navigate to problems instantly.
Go to DefinitionF12Jumps to where a function, variable, or component is defined — even across files. Saves time hunting through large codebases.
Go to Symbol in FileCtrl+Shift+OLists every function, class, constant, and variable in the file. Pick one and jump instantly. Faster than Ctrl+F when you know the name.
Find All ReferencesShift+F12Shows every place a symbol is used across the entire project. Useful before renaming to understand the impact.
Previous TabCtrl+Alt+LeftSwitches to the previously active file tab without reaching for the mouse.
Next TabCtrl+Alt+RightSwitches to the next file tab. Cycle through open files with keyboard only.
Close Active TabCtrl+WCloses the current file tab. If the file has unsaved changes, XCODX prompts before closing.
Reveal in Explorer—Scrolls the sidebar explorer to highlight the file you are currently editing. Useful in large projects where the file tree is long.
Jump to Matching BracketCtrl+Shift+\Jumps between the opening and closing bracket, brace, or parenthesis of the pair under the cursor. Essential for navigating nested structures.

Tools

File diff, history, reveal in explorer, Lighthouse audit.

CommandShortcutWhat it does
Compare Two Files—Opens a side-by-side visual diff of any two project files. Color-coded additions, deletions, and changes — same view as a pull request diff.
Show File HistoryCtrl+Alt+HEvery text file in the active project has its own version timeline, captured automatically the moment a tab opens, when you switch away from it, when you close it, and on every Save. Each entry is stored in IndexedDB and tagged with the project ID — versions never leak between projects. Click the clock icon next to the diff button (or press Ctrl+Alt+H) to open the timeline; clicking Restore on any version surfaces a confirmation prompt showing its full date and reassures you that the current code is auto-snapshotted first, so the restore is reversible.
Reveal Active File in Explorer—Scrolls the sidebar to make the currently edited file visible and selected. Useful when navigating deeply nested folder trees.
Lighthouse Audit Lab—Runs a full Lighthouse-grade audit against your live project: performance metrics (FCP, LCP, CLS, TBT, INP, TTFB), axe-core accessibility, SEO checks, and best practices — all without leaving the editor.

Run & Execute

Reload preview, execute code in 70+ languages, emulator.

CommandShortcutWhat it does
Run / Reload PreviewCtrl+EnterBuilds the current project and reloads the live preview. All JSX, Vue, and TypeScript files are compiled in-browser before the preview loads.
Execute Code (70+ languages)—Sends the active file to the self-hosted Piston API and displays the output in the console. Supports Python, Java, C, C++, Go, Rust, Ruby, PHP, and 60+ others.
Open Preview in New Tab—Opens the live project preview in a standalone browser tab with full navigation — links, forms, and history all work as they would on a real hosted site.
Pro Emulator—Opens the Pro Device Emulator with realistic device frames. Test your responsive design at exact mobile, tablet, and desktop viewport sizes.

Settings & Modes

Vim, Emacs, screencast, IntelliSense, compiler, auto-save.

CommandShortcutWhat it does
Vim Mode—Activates full Vim modal editing: Normal mode (hjkl navigation, dd, yy, p, /, :%s/…), Insert mode, Visual mode, and Command-line mode. Muscle memory from Vim works immediately.
Emacs Mode—Activates Emacs-style key bindings layered over the editor: C-x C-s to save, M-x for commands, C-n/C-p for line navigation, C-a/C-e for line start/end.
Screencast Mode—Shows a floating overlay near the bottom of the screen that displays every key you press in real time. Great for screen recordings, live demos, and tutorials.
Error Lens—Shows the error or warning message from the diagnostics panel inline at the end of the problematic line — no need to hover or switch to the Problems panel.
Problem Badges—Adds a small number badge to each file tab and sidebar entry showing how many errors and warnings it contains. Spot problematic files at a glance.
Diff Gutter—Colors the left gutter of the editor to show which lines are added (green), modified (blue), or deleted (red) since the last save — similar to a Git diff view.
Image Hover Preview—When you hover over an image file path in code (src, href, url()), a thumbnail of the image pops up inline so you can verify it is the right asset without leaving the editor.
CSS Class IntelliSense—Scans all CSS, SCSS, and LESS files in the project and offers autocomplete for class names inside HTML class="…" attributes — no more typos in class names.
Path IntelliSense—Offers file path completions in import, require, src, href, and url() as you type — based on the actual project file tree.
NPM Resolver (esm.sh)—Converts bare imports like import React from "react" into esm.sh CDN imports at build time, and fetches the corresponding TypeScript type definitions for full IntelliSense.
Runtime Compiler—Compiles .vue Single File Components, .jsx, .tsx, and .ts files in-browser using @vue/compiler-sfc and Sucrase. No webpack, Vite, or Node.js required.
Auto-Save—Persists every change to IndexedDB as you type — you never lose work even if the tab crashes or the browser closes unexpectedly.
Auto-Snapshot on Run—Takes a complete project snapshot every time you click Run. If you accidentally break something, roll back to any previous snapshot instantly.
File History—Master switch for the per-file version timeline. When on, snapshots capture on every tab open, every tab switch (the outgoing tab is recorded so the version right before you left it is preserved), every tab close, and every Ctrl+S. Storage is fully project-isolated — entries are keyed by &lt;projectId&gt;::&lt;path&gt; in a dedicated IndexedDB database, so versions from project A can never appear inside project B. The full set is included in .xcodx exports and re-keyed under the new project ID on import.
Linked Tag Editing—When you rename an HTML opening tag the matching closing tag updates automatically, and vice versa. Eliminates a common source of mismatched tag errors.
Cursor Always Centered—Keeps the cursor line near the vertical center of the viewport while you navigate. Reduces the need to scroll the view manually and minimises eye tracking distance.
Format on Save—Runs the formatter automatically every time you save. Ensures consistent indentation and style without a separate format step.
Trim Trailing Whitespace—Removes invisible trailing spaces from every line on save. Keeps diffs clean and avoids whitespace noise in version control.
Read-Only Mode—Locks the editor against all modifications. Use for code review sessions, team demos, or any situation where accidental edits would be problematic.

Frequently asked questions

Is XCODX free?

Yes, completely free. No account, no usage limits, no credit card. All processing happens in your browser.

Where are my projects saved?

All projects are saved in your browser's IndexedDB — local to your device. Use File → Export Project (.zip) to download a backup.

Can I use XCODX offline?

Yes. XCODX is a PWA. Install it from your browser and it works fully offline. The Piston API (code execution) requires connectivity.

Does XCODX support Vue and React?

Yes. Enable Runtime Compiler in Settings → Intelligence. Create .vue, .jsx, or .tsx files and XCODX compiles them in-browser — no webpack or Vite needed.

How do I import an existing project?

Drag a .zip file onto the editor. XCODX extracts and imports all files preserving the folder structure. Or use File → Import Project (.zip).

Can I run Python, Java, Go, etc.?

Yes. Click the Run button with a non-web file active to execute it via the Piston API at code.xcodx.io — supports 70+ languages.

How do I use Vim or Emacs keybindings?

Open Settings (Ctrl+,) → Key Bindings → enable Vim Mode or Emacs Mode.

What is the Lighthouse Audit Lab?

A built-in performance auditing tool (88% of real Lighthouse accuracy) that runs inside XCODX without needing Chrome DevTools.

What do the Playground, Sandbox, Compiler and Runner links open?

Each opens the same starter project in a different workspace. Playground (?mode=quick) hides the file tree and shows the preview with its console. Sandbox (?mode=project) opens every folder and the terminal for npm and Git. Compiler (?mode=inspect) shows the compiled output of the active file. Runner (?mode=run) runs the page in a phone frame with its console. A bar above the editor names the mode; dismiss it at any time.