caldempsey / parfit
PublicParagraph fit — a codebase-aware comment reflow tool. Wraps prose with optimal-fit line breaking; leaves directives alone. Inspired by par.
parfit reflows prose within code comments to a target width using optimal line breaking, preserves machine-readable directives unchanged, and supports multiple programming languages.
How It Works
You come across parfit, a simple tool that neatly wraps long sentences in code comments to make them easy to read, while keeping special notes untouched.
You install parfit with a quick command, and it's ready to use right away.
You choose the code files or entire folders where you want to tidy up the comments.
You launch parfit, and it smartly detects comments in your code, wraps the prose beautifully to your preferred line length, and leaves everything else perfect.
See the changes on screen to check they look great before saving.
Update the files right away with the neat formatting.
Your code comments now flow nicely on every line, making your project look polished and professional.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.