Skip to main content

.editorconfig Generator

New

Generate an .editorconfig file with root settings and per-file-type overrides.

editorconfigconfiggenerate
Read the guide
Shortcuts:⌘ KSearch

Configure the default [*] section and root flag.

Add file-pattern-specific sections or use quick presets.

Frequently Asked Questions

Does this always create a root setting?

Yes. The first line is always root = true or root = false based on the checkbox, so you can choose whether parent .editorconfig files should stop applying.

How are overrides applied in the generated file?

The tool writes the [*] base section first, then appends each override section afterward. Only non-empty override properties are emitted, so blank fields really mean inherit.

Should I use backslashes in override patterns on Windows?

No. The tool will output whatever you type, but EditorConfig patterns are meant to use forward-slash style globs, even on Windows.

Why can't I set max_line_length or tab_width here?

This generator only exposes charset, end_of_line, indent_style, indent_size, trim_trailing_whitespace, and insert_final_newline. Other EditorConfig properties are outside this UI.

What do the preset buttons actually add?

Markdown adds an override that disables trim_trailing_whitespace, Python sets 4-space indentation, Makefile switches to tabs, and the YAML and JSON presets set 2-space indentation patterns.

Related Tools