About Capabilities Docs Contact Privacy Policy Open IDE ↗
Docs Introduction
001 — documentation

CodeStudio IDE

A browser-native IDE with real-time collaboration, AI assistance, a full JS debugger, and zero installation required.

Single HTML File Works Offline Gemini AI Real-time Collab

Getting Started

CodeStudio runs entirely in your browser — no installation, no account required.

1

Open the IDE

Visit the live URL or download the HTML file and open it locally in any modern browser.

2

Create a Project

Press Ctrl+N or click the + button in the Explorer panel.

3

Write Code

Use the tabs to switch between HTML, CSS, and JS. The live preview updates automatically as you type.

4

Save & Export

Press Ctrl+S to save. Use Ctrl+E to export as a ZIP or single HTML file.

Note
Projects are saved in your browser's local storage. Export backups regularly to avoid losing work if you clear browser data.

File Structure

The repo is split into clean, maintainable modules across two directories.

CodeStudio_IDE.html ← entry point
📁 CSIDE_ENGINE/ ← JavaScript modules
01_storage_shim.js
18_editor_logic.js
21_gemini_ai.js
17_collab_peerjs.js
… 38 modules total
📁 CSIDE_DESIGN/ ← CSS modules
04_design_system.css
05_ui_components.css
… 27 files total

Editor

01

Syntax Highlighting

Powered by Prism.js. Supports HTML, CSS, JS, TS, Python, JSON, PHP, C#, Java, Bash, YAML, SQL, and more.

02

Multi-Cursor

Hold Alt and click to place multiple cursors simultaneously. Press Esc to clear.

03

Find & Replace

Press Ctrl+H to open Find & Replace with regex support.

04

Auto-Complete

Intelligent autocomplete for HTML tags, CSS properties, and JS keywords.

05

Minimap

A scrollable overview of your entire file on the right edge of the editor.

06

Code Beautifier

Press Ctrl+Shift+F to auto-format HTML, CSS, and JS.

07

Snapshots

Save timestamped snapshots and restore any previous version instantly.

08

Split View

Press Ctrl+\ to open a second editor pane side-by-side.

Projects

ActionHow
New projectClick + in Explorer or press Ctrl+N
Open / ImportCtrl+O — supports ZIP, single HTML, or JSON workspace
ExportCtrl+E — Single HTML, Project ZIP, or Share Link
Add custom fileClick the new-file icon next to your project name
Delete projectRight-click project in Explorer → Delete
Note
Only HTML, CSS, and JS files render in live preview. Custom files are editing-only.

Live Preview

The preview pane renders your HTML+CSS+JS in real time — updating automatically as you type, with a default 500 ms delay.

01

Fullscreen Preview

Press Ctrl+Shift+P to open your project in a dedicated fullscreen tab.

02

Mobile Preview Shell

Click Mobile to view your project inside a phone-shaped frame.

03

X-Ray Mode

Overlay layout boundaries on every element for visual debugging.

04

Share Link

Export a URL that encodes your entire project inline — no server needed.

Console

The console docks at the bottom and captures all console.log() output, warnings, and runtime errors from your live preview.

ShortcutAction
Ctrl + `Toggle console open / closed
Ctrl + LClear the console log
Ctrl + EnterRun / refresh preview
Tip
The console includes a REPL — type any JavaScript expression and press Enter to evaluate it live inside your project's context.

AI Assistant

CodeStudio integrates Google Gemini AI for code writing, fixing, and analysis. Requires your own API key.

1

Get an API Key

Visit aistudio.google.com and create a free Gemini API key.

2

Enter the Key

Go to Settings → AI & Tools and paste your key. It stays on your device only.

3

Open the Chat Panel

Press Ctrl+G or click the robot icon in the activity bar.

Models
Gemini 2.5 Flash (default), Gemini 2.5 Pro, Gemini 2.5 Flash-Lite, Gemini 2.0 Flash, Gemma 3 27B.

Real-time Collaboration

Code with others simultaneously. No account needed — just share a room ID.

01

Host a Room

Click Collab → Host Room. Share the Room ID. Set it public or private with an optional password.

02

Join a Room

Click Collab → Join Room and paste the Room ID.

03

Live Cursors

See every participant's cursor and name in real time as they type.

04

Follow Me Mode

Hosts can lock all viewers to follow their active file and scroll position.

05

Voice Huddle

Peer-to-peer voice session — no account required.

06

Whiteboard

Open a shared collaborative whiteboard canvas during any session.

07

Session Recording

Record, save, and play back full coding sessions frame by frame.

08

Live Leaderboard

Track keystrokes per participant in real time during a session.

Developer Tools

ToolWhat it does
Diff ViewerCompare two versions of your code side by side.
Code BeautifierAuto-format HTML, CSS, and JS with one click.
MinifyCompress HTML/CSS/JS to minimize file size.
Base64 Encode/DecodeEncode or decode any selected text.
Color PickerSelect a color and insert its HEX value directly into code.
QR Code GeneratorGenerate and insert a QR code image tag.
UUID GeneratorInsert a random RFC-compliant UUID.
Hash GeneratorSHA-256 hash of selected text.
Lorem IpsumInsert placeholder text at cursor.

JS Debugger

A full step-through JavaScript debugger built into the IDE — no browser DevTools needed.

ActionShortcut
Run / ContinueF8
Step OverF10
Step IntoF11
Step OutShift+F11
Toggle BreakpointClick the line number in the editor
01

Call Stack

View the full execution call stack at any breakpoint.

02

Variable Inspector

Inspect all in-scope variables and their current values.

03

Watch Expressions

Add custom expressions to watch and evaluate continuously.

04

DOM Mutations

Track all DOM changes live while your code executes.

CodeStudio Hub

A built-in community platform to publish, discover, and share projects with other CodeStudio users.

01

Publish Projects

Share your project publicly with a title, description, cover image, and tags.

02

Discover

Browse Trending, New, Top Rated, and Most Downloaded projects.

03

Stars & Ratings

Star and rate projects. Follow other creators.

04

Open in IDE

Open any Hub project directly in the editor with one click.


Themes

CodeStudio includes 20+ built-in themes across Dark, Light, Textured, Seasonal, and Custom categories.

Default Dark
Dracula
Oceanic
Monokai
Midnight OLED
Nord Code
Synthwave '84
Snow
Tip
Go to Settings → Appearance to switch themes and create your own Custom Theme.

Settings Ctrl+,

TabOptions
AppearanceTheme, sidebar position, animations, compact mode, custom colors
EditorFont, line height, tab size, preview refresh delay, word wrap, auto-save
AI & ToolsGemini API key, model selection, analysis depth
ContentSample projects, custom libraries, snippet management
Focus SoundsBrown noise, white noise, rain, fireplace — generated locally
AboutVersion info, settings backup/restore, factory reset

Keyboard Shortcuts

Editor
Save / Sync project
Ctrl+S
Undo
Ctrl+Z
Redo
Ctrl+Y
Comment / Uncomment line
Ctrl+/
Beautify code
Ctrl+Shift+F
Add multi-cursor
Alt+Click
View & Layout
Focus Mode
F11
Split editor
Ctrl+\
Toggle sidebar
Ctrl+B
Toggle preview
Ctrl+P
Fullscreen preview
Ctrl+Shift+P
Open settings
Ctrl+,
Files & Projects
New project
Ctrl+N
Open / Import
Ctrl+O
Export project
Ctrl+E
AI Assistant
Open AI chat panel
Ctrl+G
Fix selected code
Alt+E
Debugger
Run / Continue
F8
Step Over
F10
Step Into
F11
Step Out
Shift+F11

Snippets

Quick-insert chips appear in the toolbar. Click any chip to insert at cursor.

1

Add a Custom Snippet

Go to Settings → Content → Snippet Management, enter a name, paste your code, and click Add Snippet.

2

Use Your Snippet

Your custom snippets appear as chips in the toolbar and are saved across sessions.

Libraries

Browse 60+ CDN-hosted libraries organized by category from the Libraries icon in the activity bar.

CategoryExamples
CSS FrameworksTailwind CSS, Bootstrap 5, Bulma, DaisyUI
Fonts & IconsGoogle Fonts, Font Awesome 6, Material Icons
JS UtilitiesjQuery, Axios, Lodash, Day.js
ChartsChart.js, D3.js, ApexCharts, ECharts
AnimationGSAP, Animate.css, AOS, Anime.js, Lottie Web
FrameworksReact 18, Vue 3, Alpine.js
3D & CanvasThree.js, p5.js

Account & Sync

01

Sign in with Google

One-click sign in. Syncs your projects to the cloud automatically.

02

Google Drive Sync

Push and pull your projects to a CodeStudio folder in your Google Drive.

03

GitHub Gist

Push and pull project files to GitHub Gists using your Personal Access Token.

04

Settings Backup

Export all your settings to a file and restore on any device.

Install as App

CodeStudio is a PWA and can be installed on your device for offline use.

1

Open in Chrome / Edge

Visit the CodeStudio URL in a Chromium-based browser.

2

Click Install

Click Install App in the toolbar, or use the browser's address bar install icon.

3

Launch Offline

CodeStudio now opens like a native app and works fully offline.

Privacy

DataWhere it goes
Your code & projectsBrowser local storage only. Never sent to any server.
Gemini API keyStored locally on your device. Never sent to CodeStudio servers.
AI chat messagesSent to Google Gemini API only for the duration of the request.
Collab sessionsPeer-to-peer via WebSockets. Not stored permanently.
Hub projectsStored in Firebase Realtime Database (publicly visible).
Note
CodeStudio has no tracking pixels and no analytics scripts. The site may display ads via Google AdSense to support development.