HTML Formatter
Re-indent HTML without breaking whitespace-sensitive elements.
Make every editor agree on indentation, line endings and charset.
The EditorConfig Generator states a project’s formatting rules once so every editor obeys them, with the per-language overrides that are not optional — tabs for Make and Go, no trailing-whitespace trimming in Markdown, CRLF for batch files.
An .editorconfig file is how a project states its formatting rules once and has every editor obey them, whether the person opening it uses VS Code, a JetBrains IDE, Vim or something else. Most editors support it natively; the rest have a plugin.
The per-language overrides are the part worth getting right, because a few languages will simply not tolerate the global default. Make requires real tabs and fails with a cryptic error on spaces. YAML forbids tabs outright. Markdown uses two trailing spaces as a line break, so trimming trailing whitespace silently rewrites the document. Go is formatted by gofmt, which uses tabs and will not be argued with. Each override here carries a comment saying which of those it is there for, so nobody deletes it six months later.
Make needs real tabs, YAML forbids them, and Markdown treats two trailing spaces as a line break. Each one is a rule you cannot set globally.
A comment on each block saying which language quirk it exists for, so nobody deletes it six months later as untidy.
Which stops the search walking up into a stray file in someone’s home directory and quietly changing the rules.
Choose tabs and it writes tab_width rather than indent_size, which is the field that actually applies.
Most editors read .editorconfig natively; VS Code and the JetBrains IDEs need one small plugin.
Indent style and size, line endings, charset and whether to trim trailing whitespace.
Markdown, Makefile, YAML, Python, Go, PHP, JSON, batch files and patches.
Name it .editorconfig — root = true stops the search going any higher.
VS Code and JetBrains IDEs need a plugin; most others read it out of the box.
No — they cover different moments. EditorConfig tells your editor how to behave as you type; a formatter rewrites the file on save or in CI. They overlap on indentation, so set the same values in both or the two will fight.
It stops EditorConfig searching parent directories for more .editorconfig files. Without it, a stray file in your home directory can quietly change the rules for every project beneath it.
lf, in almost every case, including on Windows — Git, every modern Windows editor and every CI runner handle it. The exception is .bat and .cmd files, which genuinely need CRLF to run, so they get their own override.
Because two trailing spaces are how Markdown marks a hard line break. Trim them globally and paragraphs that were deliberately broken across lines silently collapse into one.
What people who use the EditorConfig Generator think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the EditorConfig Generator. It takes half a minute and no account.
Write the first reviewRe-indent HTML without breaking whitespace-sensitive elements.
Generate deterministic UUIDs from a namespace and a name.
Convert a hexadecimal string to Base64, standard or URL-safe.
Check a JWT signature against a secret or a public key, and see why it fails.
Compute a CRC-32 checksum in hex, decimal and signed form.
Paste raw HTTP headers and get them parsed, explained and checked.
Shape corners individually, including the elliptical slash syntax.
Generate complete fake user profiles for seeding and design work.