EditorConfig generator
Generate a .editorconfig file that keeps indentation and line endings consistent across editors.
EditorConfig generator
.editorconfig is the small file that stops a project's code style from drifting every time someone opens it in a different editor. This tool builds one for you from a few simple choices, instead of you copying a template from memory and hoping the syntax is still right.
Pick spaces or tabs and the indent width, the file encoding, and whether lines end with LF (Unix and macOS) or CRLF (Windows). Toggle "Insert final newline" so every file ends with exactly one line break, and "Trim trailing whitespace" so editors quietly strip the stray spaces that show up as noise in diffs. A max line length is optional — leave it at 0 to skip the setting entirely, or set it to enforce wrapping in editors that support it.
Two extra sections handle the cases that need their own rules. Makefiles require real tab characters to indent recipe lines — make fails outright if a space sneaks in — so turning on the Makefile section pins indent_style = tab for [Makefile] regardless of your general preference. Markdown treats two trailing spaces at the end of a line as a deliberate hard line break, so its section disables trailing-whitespace trimming for [*.md] to stop editors from erasing formatting the author meant to keep.
Everything is generated locally in your browser as you change options — nothing about your project, its file names or its structure is sent anywhere. Copy the result straight into a new .editorconfig at your repository root, download it as a .txt file to rename yourself, or tweak an option and watch the output update instantly.