- Why use .editorconfig?
- Consistent indentation and line endings across everyone's editor without per-editor plugins or settings. VS Code, IntelliJ, Vim, Emacs all honor it natively or via plugin.
- Which rules does it generate?
- indent_style (tab/space), indent_size, end_of_line (lf/crlf), charset (utf-8), trim_trailing_whitespace, insert_final_newline. Section overrides for specific file globs.
- Can I have different rules per file type?
- Yes — the generator adds sections for `*.md` (preserve trailing whitespace), `*.py` (4-space), `Makefile` (tabs only), matching typical language conventions.
- Is it a replacement for Prettier?
- No. EditorConfig handles indentation and line endings; Prettier handles syntax-aware formatting. They're complementary — most projects use both.