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.
What This Tool Does
EditorConfig Generator is built for deterministic developer and agent workflows.
Generate a .editorconfig file with root and per-filetype rules for indentation, charset, line endings, and whitespace.
Use How to Use for execution steps and FAQ for constraints, policies, and edge cases.
Last updated:
This tool is provided as-is for convenience. Output should be verified before use in any production or critical context.
Agent Invocation
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.
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.