DEV Community

Cover image for Why Do I Love Code Formatters?
Yarden Porat
Yarden Porat

Posted on • Edited on

Why Do I Love Code Formatters?

Is it because standardizing the code makes it more readable? Also, but no.
Is it because it saves unnecessary discussions about style in reviews? Also, but no.
Is it because it saves us the need to think about formatting at all? Also, but no.
I love Code Formatters because they provide instant validation—immediate feedback on whether the syntax is correct. In large projects, nothing gives you validation on the code in the file you are editing as quickly. Linting can take a few seconds. Unit tests running with watch take more time. A development server with HMR is usually slower.

Even if you are an expert in a certain domain, one day you might find yourself in a codebase you're unfamiliar with, in a language that isn't your forte, and you'll be grateful that a formatter was enforced in the project.

code formatters

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay