.editorconfig Generator
Keep team editors consistent with one config file.
.editorconfig
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false
[Makefile]
indent_style = tab
[*.{yml,yaml}]
indent_size = 2Save as .editorconfig at the root of your repo. Most editors (VSCode, JetBrains, Sublime) read it automatically. Keeps indentation and line endings consistent across teams without configuring every editor individually.
About
Pick indent (2/4 spaces or tabs), line endings, trim trailing whitespace, final newline, and max line length. Output goes at the root of your repo and is read automatically by VSCode, JetBrains, Sublime, and many others.
How to use
- Pick your style.
- Save as .editorconfig in the repo root.
FAQ
Does my editor support it?+
VSCode needs the EditorConfig extension. JetBrains, Sublime, Vim (with plugin), and most modern editors support it natively.