.editorconfig Generator
Generate an .editorconfig with UTF-8, LF line endings, final newlines, trimmed whitespace and indentation, plus sections for PHP, Python, Go, Markdown, YAML, Makefiles and Windows scripts.
Free · No sign-up · Your inputs stay in your browser
Input
Generate an .editorconfig
Output
.editorconfig
324 characters
Read natively by JetBrains IDEs, Visual Studio, Vim 9.1 and Neovim 0.9+, and by VS Code through the EditorConfig extension. root = true stops the search for parent configs at this directory. It sets how editors write files; enforce the result in CI with your formatter (Pint, Prettier, Ruff, gofmt), which reads many of the same settings.
Runs in this browser. Nothing you paste is sent to a server.
About this tool
Method, assumptions, practical next steps, and limits.
Why it is worth a file
Editors default to different indentation and line endings, so without a shared config every contributor's editor reformats the lines it touches and diffs fill with noise. EditorConfig is read natively by JetBrains IDEs, Visual Studio, Vim 9.1 and Neovim, and by VS Code through an extension. The properties are listed at editorconfig.org.
Formatters still enforce
EditorConfig shapes what editors write; it does not check anything. Run your formatter (Pint, Prettier, Ruff, gofmt) in CI. Prettier reads several .editorconfig properties, so the two agree.