PB
Available
tune
lock Free · Private · In-Browser

EditorConfig Generator

Build a consistent .editorconfig file from project formatting choices.

 

Create one formatting contract for many editors

EditorConfig gives editors a shared set of basic whitespace and encoding rules without tying a repository to one IDE. This generator writes the root declaration, global character set and line-ending settings, final-newline behavior, trailing-whitespace behavior, and one section for each file pattern you provide. Pattern rows explicitly choose space or tab indentation and a positive size.

The default produces a JavaScript section using two spaces and a Makefile section using tabs with size four, while all files inherit UTF-8, LF endings, a final newline, and trailing-space trimming. Each row is parsed as pattern, style, and size separated by pipes, so a missing value or unsupported style is reported rather than producing a malformed section.

Pattern sections and precedence

EditorConfig sections apply in file order, and a later matching section can override an earlier one. Language formatters such as Prettier can also impose stricter rules beyond this file. Generation occurs only in your browser and never inspects a repository. Review glob coverage, especially generated files and Makefiles, then place the output at the intended project root.

Frequently Asked Questions

What does root equals true do?

It tells EditorConfig clients to stop searching parent directories for additional configuration files.

Can different file types use different indentation?

Yes. Add one pipe-separated row per pattern with its own space or tab style and indent size.

Does this replace a code formatter?

No. EditorConfig handles basic editor behavior; language formatters still control syntax-specific layout.

Take it further
All Free Tools

Browse the full set of free, private, in-browser tools.

Learn More arrow_forward