VS Code formatter extension
Prettier-er
Your code, your style, on your terms.
Customize Prettier's formatter to match your style, and stay readable with a single click.
Project Overview
What is Prettier-er?
Prettier-er is a Visual Studio Code extension built on top of the popular Prettier formatter. While Prettier solves endless debates about code style by sticking to a single opinion, it leaves out anyone who wants even a bit of customization. If your preferred formatting style doesn't match Prettier's, you're usually stuck searching for workarounds or giving up altogether.
Prettier-er lets you control your code's appearance using simple VS Code workspace settings. Choose options like Allman-style braces, matrix-style arrays, or force objects and arrays to span multiple lines. These changes take effect instantly, and need no config files to manage.
On top of formatting, Prettier-er includes a Readability Analysis tool that reviews your code for potential problem areas. It checks things like average line length and nesting depth, and then offers suggestions to make your code easier to read.
Motivation
For our senior project, we wanted to solve a real problem, not just another web app demo. Prettier was an obvious target: its strict, one-size-fits-all approach annoyed anyone who needed even minor tweaks, while more flexible alternatives demanded heavy setup that most developers avoid.
Our answer was Prettier-er: an extension that keeps everything easy but gives you control over your formatting. Now, anyone can quickly set their favorite code style in VS Code and get real feedback on code clarity, whether they're a beginner or a seasoned dev.
Development Journey
Step 1 of 8
Origin
Origin
Project Impact
Custom Toggles
Instant style tweaks
Readability Metrics
Objective code checks
Screenshots
Key Features
Personalized One-Click Formatting
Apply formatting preferences through VS Code's built-in settings, without adding separate config files. The goal was to keep the workflow close to normal Prettier while still letting users choose a few style details.
Real-Time Readability Analysis
Run a readability check from the editor and see where a file may be getting harder to scan. Prettier-er looks at issues like long lines and deep nesting, then reports the areas that may need attention.
Outcomes & Reflections
What We Accomplished
- Shipped v1.0 to the VS Code Marketplace.
- Added eight zero-config style toggles including Allman, matrix arrays, and blank-line retention.
- Built a research-backed readability analyzer with 7 tunable metrics.
- Maintained 100% unit-test pass rate across core, types, and extension repos.
What We Learned
- Deep diving into Prettier's AST printer taught us that even "opinionated" tools can stay flexible with the right hooks.
- Publishing to the marketplace highlighted the value of CI/CD and signed VSIX pipelines.
- Agile ceremonies, peer reviews, and two-week sprints kept 5 developers and a mentor in sync while keeping merge conflicts low.