Experience instant code formatting without editor freezes. PrettierJet uses a persistent Node.js server to eliminate Prettier's startup overhead.
- Blazing fast - 20-30x faster than traditional Prettier plugins
- Real-time formatting - no more 2-3 second delays especially on older machines
- Non-blocking - Never freezes your editor UI
- Context Menu - Right-click → "Format With Prettier"
- Smart config - Auto-detects
.prettierrcand.prettierignoreof any project - Cross-platform - Works on Windows, macOS, and Linux
- Lightweight - Minimal CPU/memory usage
Tested on a 2GHz single-core older laptop with 100-line JavaScript files:
| Metric | PrettierJet | JsPrettier |
|---|---|---|
| Average Format Time | 80ms | 2000ms |
| Worst Case | 100ms | 3000ms+ |
| UI freezing | ❌ Never | ✅ Frequent |
| CPU usage | Minimal | Heavy spikes |
- With JsPrettier: Type → Wait 2 seconds(noticeable on old machines) → See formatted code
- With PrettierJet: Type → Code formats instantly as you work
- Never locks up Sublime Text during formatting
1. Install Prettier Globally (Required global installation)
npm install -g prettier-
Open Sublime Text
-
Go to:
Preferences → Browse Packages...
(This opens your correct Packages folder automatically) -
In that folder:
- Right-click → Open Terminal (or
cdmanually to that folder) - Run:
git clone https://github.com/mebrahtomkg/PrettierJet.git
- Right-click → Open Terminal (or
-
Restart Sublime Text
✅ Works on Windows/macOS/Linux
-
Right-click in any supported file
-
Select "Format With Prettier"
Add to your key bindings (Preferences > Key Bindings):
{ "keys": ["ctrl+alt+f"], "command": "prettier_jet_format" }Press Ctrl+Shift+P (Win/Linux) or Cmd+Shift+P (Mac)
Type "PrettierJet: Format Document"
-
Traditional plugins spawn new Node.js processes (2000ms+) for every format action
-
PrettierJet maintains one persistent process (80ms)
-
Formatting runs in background
-
Never freezes your editor UI
- Keeps Prettier warm for subsequent faster requests
We welcome improvements!
Q: How do I configure Prettier formatting rules?
A: Follow the official Prettier configuration docs. PrettierJet automatically detects and applies:
.prettierrcorprettier.config.jsin your project root.prettierignorefilesprettierkey inpackage.json
Q: Can I use a local Prettier installation?
A: Currently PrettierJet requires global Prettier installation (npm install -g prettier). Local node_modules installations are not yet supported.
Q: Why is this faster than other plugins?
A: Three architectural advantages:
- Persistent process - No Node.js startup penalty
- In-memory caching - Prettier stays loaded between uses
- HTTP communication - Faster than spawning CLI processes