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.
The most powerful browser-based IDE. Write, compile, preview and audit HTML, CSS, JavaScript, Vue, React, TypeScript and 70+ languages — zero install, zero config.
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.
Create, open, save, export, and import project files.
| Command | Shortcut | What it does |
|---|---|---|
| New File | Ctrl+N | Creates 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 File | Ctrl+O | Lets 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 File | Ctrl+S | Persists 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 Files | Ctrl+Shift+S | One action to flush every unsaved change across all open files. Useful before exporting a zip or sharing your project. |
| Rename File | F2 | Renames the file in-place inside the project. All open tabs referencing that file update their labels automatically. |
| Delete File | Delete | Permanently 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 Project | Ctrl+Alt+N | Create 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. |
Multi-cursor, find & replace, format, comment, indent, and undo.
| Command | Shortcut | What it does |
|---|---|---|
| Find | Ctrl+F | Opens an inline search bar inside the editor. Supports plain text and regular expressions. Results are highlighted across the file as you type. |
| Find & Replace | Ctrl+H | Find any string or regex and replace it — one occurrence or all at once. Case-sensitive and whole-word options available. |
| Add Cursor at Click | Alt+Click | Place cursors at multiple positions and type simultaneously. Ideal for renaming multiple variables, editing JSON arrays, or any repetitive change across scattered lines. |
| Select Word | Ctrl+D | Selects 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 Occurrences | Ctrl+Shift+L | Selects 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 Up | Alt+↑ | Moves the current line (or selected block) up without cut/paste. Much faster for reordering CSS rules, object keys, or function calls. |
| Move Line Down | Alt+↓ | Same as above but moves down. Hold and repeat to quickly reposition code blocks anywhere in the file. |
| Duplicate Line Down | Alt+Shift+↓ | Inserts an exact copy of the current line directly below. Saves time when creating similar lines with minor variations. |
| Delete Line | Ctrl+Shift+K | Removes the entire line in one keypress — no need to select from start to end. Does not affect the clipboard. |
| Toggle Line Comment | Ctrl+/ | 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 Comment | Ctrl+Shift+/ | Wraps a selection in a block comment. Useful for temporarily disabling a section of code. |
| Format Document | Shift+Alt+F | Re-indents and reformats the entire file using language-appropriate rules. Keeps code style consistent across the team without manual effort. |
| Indent Line | Tab | Increases the indentation level of the selected lines. Works with both spaces and tabs based on your editor settings. |
| Outdent Line | Shift+Tab | Decreases indentation. Useful when restructuring nested code that needs to move to an outer scope. |
| Undo | Ctrl+Z | Steps backward through your edit history one action at a time. XCODX keeps a deep undo stack even across file switches. |
| Redo | Ctrl+Y | Replays undone actions. If you undo too many steps, redo brings them back one at a time. |
| Select All | Ctrl+A | Selects 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. |
Toggle panels, theme, zen mode, word wrap, and minimap.
| Command | Shortcut | What it does |
|---|---|---|
| Command Palette | Ctrl+Shift+P | Your 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 File | Ctrl+P | Fuzzy-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 Sidebar | Ctrl+B | Hides the file explorer to reclaim screen space for the editor. Press again to bring it back. A useful toggle during focused coding sessions. |
| Toggle Console | Ctrl+` | 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 Theme | Ctrl+K Ctrl+T | Flips 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 Mode | Ctrl+K Z | Hides every panel, toolbar, and chrome element — leaving only the editor and your code. Perfect for deep focus sessions. |
| Fullscreen | F11 | Expands 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 Wrap | Alt+Z | When 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 Files | Ctrl+Shift+F | Search 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. |
Jump to lines, definitions, symbols, tabs, and brackets.
| Command | Shortcut | What it does |
|---|---|---|
| Go to Line | Ctrl+G | Jumps the cursor to an exact line number. Combine with error messages that report line numbers to navigate to problems instantly. |
| Go to Definition | F12 | Jumps to where a function, variable, or component is defined — even across files. Saves time hunting through large codebases. |
| Go to Symbol in File | Ctrl+Shift+O | Lists 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 References | Shift+F12 | Shows every place a symbol is used across the entire project. Useful before renaming to understand the impact. |
| Previous Tab | Ctrl+Alt+Left | Switches to the previously active file tab without reaching for the mouse. |
| Next Tab | Ctrl+Alt+Right | Switches to the next file tab. Cycle through open files with keyboard only. |
| Close Active Tab | Ctrl+W | Closes 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 Bracket | Ctrl+Shift+\ | Jumps between the opening and closing bracket, brace, or parenthesis of the pair under the cursor. Essential for navigating nested structures. |
File diff, history, reveal in explorer, Lighthouse audit.
| Command | Shortcut | What 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 History | Ctrl+Alt+H | Every 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. |
Reload preview, execute code in 70+ languages, emulator.
| Command | Shortcut | What it does |
|---|---|---|
| Run / Reload Preview | Ctrl+Enter | Builds 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. |
Vim, Emacs, screencast, IntelliSense, compiler, auto-save.
| Command | Shortcut | What 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 <projectId>::<path> 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. |
Yes, completely free. No account, no usage limits, no credit card. All processing happens in your browser.
All projects are saved in your browser's IndexedDB — local to your device. Use File → Export Project (.zip) to download a backup.
Yes. XCODX is a PWA. Install it from your browser and it works fully offline. The Piston API (code execution) requires connectivity.
Yes. Enable Runtime Compiler in Settings → Intelligence. Create .vue, .jsx, or .tsx files and XCODX compiles them in-browser — no webpack or Vite needed.
Drag a .zip file onto the editor. XCODX extracts and imports all files preserving the folder structure. Or use File → Import Project (.zip).
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.
Open Settings (Ctrl+,) → Key Bindings → enable Vim Mode or Emacs Mode.
A built-in performance auditing tool (88% of real Lighthouse accuracy) that runs inside XCODX without needing Chrome DevTools.
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.