Skip to content

.editorconfig Generator

Embed

Paste this where you want .editorconfig Generator on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/editorconfig-generator/" width="100%" height="500" frameborder="0" loading="lazy" title=".editorconfig Generator"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/editorconfig-generator/">.editorconfig Generator</a> by BrowserUtils</p>

Generate .editorconfig files for consistent coding styles.Runs in this tab.

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

About .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.

More in DevOps & Config

All 16 devops & config