A VS Code-inspired standalone markdown editor with live preview, file explorer, outline sidebar, and multi-tab support.
markdown-reader/
├── main.js ← Electron main process + IPC handlers
├── preload.js ← Secure bridge between main and renderer
├── index.html ← Full app UI
├── package.json ← Dependencies and build config
└── README.md
Prerequisites: Node.js installed — https://nodejs.org
# 1. Install dependencies
npm install
# 2. Run in development
npm start# macOS → dist/Markdown Reader.dmg
npm run build:mac
# Windows → dist/Markdown Reader Setup.exe
npm run build:win
# Linux → dist/Markdown Reader.AppImage
npm run build:linuxOutput lands in the dist/ folder.
- File Explorer sidebar — open any folder and browse its full tree; click any
.md,.txt, or.markdownfile to open it - Multi-tab editor — open multiple files simultaneously, switch between them, close individually
- Outline sidebar — live heading tree with scroll-sync highlighting and filter; click to jump to any section
- Activity bar — VS Code-style icon strip to toggle between Explorer and Outline panels
- Split / Edit / Preview modes — keyboard-shortcut accessible
- Save — Ctrl/Cmd+S writes back to the original file on disk
- Export as HTML — exports the rendered preview as a self-contained HTML file
- Native menus — File > Open Folder, Open File, Save, Export; View menu for all panel and mode toggles
| Action | Shortcut |
|---|---|
| Open Folder | Ctrl/Cmd + Shift + O |
| Open File | Ctrl/Cmd + O |
| Save | Ctrl/Cmd + S |
| Export as HTML | Ctrl/Cmd + E |
| Split view | Ctrl/Cmd + 1 |
| Editor only | Ctrl/Cmd + 2 |
| Preview only | Ctrl/Cmd + 3 |
| Toggle File Explorer | Ctrl/Cmd + Shift + E |
| Toggle Outline Sidebar | Ctrl/Cmd + \ |
| Zoom in / out / reset | Ctrl/Cmd + + / - / 0 |
| Toggle fullscreen | F11 (Win/Linux) |
| DevTools | Ctrl/Cmd + Shift + I |
- Create an
assets/folder - Add
icon.png(512×512) for Linux/Windows andicon.icnsfor macOS - Uncomment the
iconline inmain.js - Add
"assets/"to thefilesarray inpackage.json