Installation
Get Code Editor Thing running on your machine in just a few steps. This guide covers prerequisites, installation, and platform-specific considerations.Prerequisites
Before installing Code Editor Thing, ensure you have the following installed:Node.js
Version 16.x or higher recommended
npm or pnpm
Package manager for installing dependencies
Code Editor Thing uses Electron 33.x and requires Node.js to build native modules like
node-pty for terminal support.Verify Your Setup
Check your Node.js and npm versions:Installation Steps
Clone the Repository
Clone the Code Editor Thing repository to your local machine:Replace
yourusername with the actual repository location.Install Dependencies
Install all required npm packages:This will install:
- React 18.3 and React DOM for the UI
- Electron 33.4 for the desktop framework
- CodeMirror 6 and language extensions
- Vite 6 for development and building
- TypeScript 5.6 for type checking
- Tailwind CSS 3.4 for styling
- xterm.js and node-pty for terminal support
- Lucide React for icons
Build Electron Main Process
Compile the Electron main process:This compiles
electron/main.ts and electron/preload.ts into CommonJS modules that Electron can run.Platform-Specific Notes
macOS
On macOS, Code Editor Thing uses native keyboard shortcuts:- Cmd+O - Open folder
- Cmd+S - Save file
- Cmd+B - Toggle sidebar
- Cmd+Shift+T - Toggle terminal
.dmg installer when you run:
Windows
On Windows, the terminal defaults to PowerShell. You can modify this inelectron/main.ts:143.
Keyboard shortcuts use Ctrl instead of Cmd:
- Ctrl+O - Open folder
- Ctrl+S - Save file
Linux
Linux users may need to install additional dependencies for Electron:Troubleshooting
Native Module Build Failures
Ifnode-pty fails to build:
Electron Window Doesn’t Open
Check that the Vite dev server is running:TypeScript Errors
Rebuild TypeScript declarations:Available Scripts
Once installed, you have access to these npm scripts:| Script | Description |
|---|---|
npm run dev | Start Vite development server |
npm run build | Build production React app |
npm run build:electron | Compile Electron main/preload |
npm run electron:dev | Run Electron in development mode |
npm run electron:build | Build production Electron app |
npm run preview | Preview production build |
Next Steps
Now that Code Editor Thing is installed, learn how to use it:Quickstart Guide
Run the app, open a folder, and start editing code