.editorconfig Generator
Generate .editorconfig files for consistent coding styles.Runs in this tab.⌘ ↵ runs it
root = true [*] indent_style = space indent_size = 2 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true
Next step
AtriumKitFrom the team behind browserutils
Turn a click-through into an interactive demo
AtriumKit records your web app once in Chrome and turns every click into a step of a demo you can embed or share. There’s a free plan.
Try AtriumKit freeAbout .editorconfig Generator
Free online .editorconfig generator. Create .editorconfig files to maintain consistent coding styles across different editors and IDEs with per-file-type settings. It runs in your browser. Nothing is sent to a server.
Questions
What is EditorConfig?
EditorConfig helps maintain consistent coding styles across different editors and IDEs. It uses a simple .editorconfig file to define settings like indent style, indent size, end-of-line characters, and character encoding.
Which editors support EditorConfig?
Most modern editors support EditorConfig natively or via plugins, including VS Code, IntelliJ IDEA, Sublime Text, Vim, Emacs, and Atom. Check editorconfig.org for a full list of supported editors.
How is EditorConfig different from Prettier or ESLint?
EditorConfig sets basic file formatting (indentation, line endings, charset) at the editor level before you save. Prettier and ESLint handle code formatting and linting rules at build time. They complement each other well in a project.
Can I set different indent styles per file type?
Yes. EditorConfig supports glob patterns like [*.py] or [Makefile] to apply different rules per file type. For example, you can use 4-space indentation for Python and tabs for Makefiles in the same project.
Where should I place the .editorconfig file?
Place it in your project root. EditorConfig searches upward from the opened file until it finds a file with root = true. You can also place additional .editorconfig files in subdirectories to override parent settings.
Comments
More in DevOps & Config
- .gitignore Generator
- Dockerfile Generator
- Docker Compose Generator
- Nginx Config Generator
- .env File Generator
- GitHub Actions Generator
- README Generator
- License Generator
Comments