About .editorconfig Generator

The .editorconfig Generator builds the file that keeps whitespace and encoding consistent across editors. Set the rules for [*] and a couple of common per-file overrides.

It runs in the page and remembers your choices in your own browser.

How to use it

  1. Set the indent style and size, line endings, charset, and the trim and final-newline options.
  2. Optionally keep trailing spaces in Markdown and force tabs in Makefiles.
  3. Copy or download the file to your repository root.

Common questions

Are unset options written out?

No. Only the properties you set appear, so editors fall back to their own defaults for the rest.

What does root = true do?

It stops EditorConfig from looking in parent directories, so this file wins. Leave it on for a repository root.

Can I add my own globs?

The generator covers the common ones; add extra sections by hand.

Is anything uploaded?

No. The file is built in your browser.