My Tools Garage

.editorconfig Generator

Build an .editorconfig file in seconds.

in-browser

How to use

  1. 1 Pick your indent style (spaces or tabs) and size.
  2. 2 Choose line endings and a charset.
  3. 3 Toggle trailing-whitespace trimming and the final-newline rule.
  4. 4 Copy the generated file and save it as .editorconfig in your project root.

About .editorconfig Generator

The .editorconfig Generator builds the small but invaluable configuration file that keeps coding style consistent across an entire team, no matter which editor or IDE each person uses.

EditorConfig is supported natively or via plugin by virtually every editor, so a single file checked into the root of your repository quietly enforces the same indentation, line endings and whitespace handling for everyone.

Choose whether to indent with spaces or tabs and how many columns per level, select your preferred line-ending style (LF for Unix and modern cross-platform projects, CRLF for Windows-centric ones), pick a charset, and toggle the two rules that prevent the most noisy diffs: trimming trailing whitespace and inserting a final newline.

The tool assembles a correct file as you make choices, using tab_width for tab indentation and indent_size for spaces, exactly as the EditorConfig spec expects.

It also adds a sensible Markdown override that leaves trailing whitespace alone, because Markdown uses two trailing spaces to mark a hard line break — a detail that trips up many hand-written configs.

The result is ready to copy and drop straight into your project as `.editorconfig`.

Everything is generated locally in your browser with no uploads, so it is fast, private and works offline.

FAQ

Where do I put the generated file?

Save it as a file named .editorconfig in the root of your repository. Editors search upward from each file, so a root config applies everywhere unless overridden.

Why does the Markdown section keep trailing whitespace?

Markdown uses two trailing spaces to force a hard line break, so trimming them would change rendering. The override preserves that behaviour for .md files.

What does root = true do?

It tells EditorConfig to stop searching parent directories for further config files, making this the topmost configuration for the project.