EditorConfig Generator
Generate a .editorconfig with a root [*] section and per-glob overrides for indent style and size, charset, line endings and trailing whitespace.
EditorConfig Generator
Global [*]
Per-filetype overrides
# EditorConfig is awesome: https://EditorConfig.org # top-most EditorConfig file root = true [*] indent_style = space indent_size = 2 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [*.md] trim_trailing_whitespace = false [Makefile] indent_style = tab
Drop this file at your repository root as .editorconfig. Compatible editors apply it automatically; some need the EditorConfig plugin.
Updated . Provided as is. Check the output before you rely on it in production.
How to use EditorConfig Generator
- 1
Pick a preset or start fresh
Choose Standard 2-space, Tabs, or Python to prefill sensible defaults, then adjust anything you need.
- 2
Set the global rules
Configure indent style, size, end-of-line, charset, and whitespace handling for the global [*] section.
- 3
Add per-filetype overrides
Create sections for globs like *.md or Makefile and set only the keys that should differ from the global rules.
- 4
Review the output
The .editorconfig text updates live, with root = true already placed at the top of the file.
- 5
Copy or download
Copy the text or download the file and drop it at your repository root to apply it.
Questions and answers
What is a .editorconfig file?
How do per-filetype rules work?
Do all editors support EditorConfig?
Where do I put the file?
Is anything uploaded?
For AI agents: how to call this tool
Machine-readable contract, endpoints and examples. Humans can ignore this section.
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/editorconfig-generator/
For automation planning, fetch the canonical contract at /api/tool/editorconfig-generator.json.