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

Top comments (0)