Quickstart Guide
This guide will walk you through running Code Editor Thing for the first time, opening a project, editing files, and customizing your theme.Running the Application
Start Development Mode
From your project directory, run:This command does three things:You should see a window appear with the Code Editor Thing interface.
- Builds the Electron main process (
electron/main.ts→dist-electron/main.cjs) - Starts the Vite development server on
http://localhost:5173 - Launches the Electron window
The first launch may take a few seconds while Vite optimizes dependencies.
Opening Your First Folder
Open the Folder Dialog
Use either method to open a folder:Method 1: Menu Bar
- Click File → Open Folder
- Press Cmd+O (macOS) or Ctrl+O (Windows/Linux)
Editing Files
Once you have a folder open, you can start editing files:Open a File
In the sidebar, click on any file to open it. For example, click
package.json.The file will:- Open in a new tab at the top of the editor
- Display with syntax highlighting based on the file extension
- Show line numbers and code folding
Make Changes
Click in the editor and start typing. The editor supports:
- Syntax highlighting for JavaScript, TypeScript, Python, Rust, C++, HTML, CSS, JSON, and Markdown
- Autocomplete with Ctrl+Space
- Multiple cursors with Cmd+Click
- Undo/Redo with Cmd+Z / Cmd+Shift+Z
Save Your Changes
Save the file using:Keyboard Shortcut (Recommended)The code that handles saving is in The dot indicator disappears once the file is saved.
src/App.tsx:10-18:Changing Themes
Code Editor Thing includes 9 beautiful themes:Open Theme Selector
Look for the paintbrush icon in the bottom-left info bar. Click the dropdown next to it.
Select a Theme
Choose from the 9 available themes:
- Light - White background, classic syntax colors
- Dark - Dark gray background, VS Code colors
- GitHub Dark - True black background, GitHub colors
- GitHub Light - Clean white with GitHub palette
- Dracula - Purple and pink accents on dark
- Monokai - Iconic green and yellow on dark
- Nord - Cool blue and teal tones
- One Dark Pro - Balanced pastels on dark
- Tokyo Night - Vibrant blues and purples
src/components/theme-selector.tsx:5-23.Using Keyboard Shortcuts
Boost your productivity with these built-in shortcuts:| Shortcut | Action | Platform |
|---|---|---|
| Cmd/Ctrl+O | Open folder | All |
| Cmd/Ctrl+S | Save current file | All |
| Cmd+B | Toggle sidebar | macOS |
| Cmd+Shift+T | Toggle terminal | macOS |
The keyboard shortcuts are registered in
electron/main.ts:39-45 using Electron’s global shortcuts API.Real-World Workflow Example
Here’s a complete workflow from start to finish:Save & View
Press Cmd+S to save. Since you’re running in development mode, Vite will hot-reload your changes instantly!
Customize Appearance
Switch to the Tokyo Night theme for a vibrant blue color scheme, or Dracula for purple accents.
Understanding the Architecture
As you use Code Editor Thing, here’s what’s happening under the hood:File Operations
When you open or save files, the React frontend communicates with Electron’s main process:electron/main.ts:123-138:
Syntax Highlighting
CodeMirror 6 provides syntax highlighting using language extensions imported insrc/components/Editor.tsx:1:
- JavaScript/TypeScript:
@codemirror/lang-javascript - Python:
@codemirror/lang-python - Rust:
@codemirror/lang-rust - C++:
@codemirror/lang-cpp - HTML:
@codemirror/lang-html - CSS:
@codemirror/lang-css - JSON:
@codemirror/lang-json - Markdown:
@codemirror/lang-markdown
Next Steps
Explore Themes
Try all 9 themes and find your favorite. Each theme has unique syntax colors!
Customize the Code
Code Editor Thing is open source. Modify
src/lib/themes.ts to create your own theme.Build for Production
Ready to distribute? Run
npm run electron:build to create a distributable app.Extend Functionality
Add new features by exploring the React components in
src/components/.