Skip to content

EditorConfig Generator

Create an .editorconfig file that keeps indentation, line endings, character set and whitespace consistent across editors. Choose spaces or tabs, the indent size, LF or CRLF, the charset, trailing whitespace and final newline rules and an optional maximum line length, with common overrides for Markdown and Makefiles.

Reset

Frequently asked questions

What is an .editorconfig file?

A plain text file in the root of a project that tells editors how to format files: indentation, line endings, charset and whitespace. Many editors read it natively, including Visual Studio Code with the EditorConfig extension, JetBrains IDEs and Visual Studio.

Why does it start with root = true?

root = true tells editors to stop looking for further .editorconfig files in parent folders, so the settings of this project are not mixed with others.

Why keep trailing spaces in Markdown?

Two spaces at the end of a Markdown line are a hard line break. The [*.md] section turns trailing whitespace trimming off there, so those breaks survive.

Why use tabs in Makefiles?

make requires a tab at the start of every recipe line. The [Makefile] section keeps tabs even when the rest of the project uses spaces. It is left out when you already choose tabs.

What does max_line_length do?

It tells editors that support it where to wrap or show a guide. Many editors ignore it, and some formatters such as Prettier read it as their print width. Enter 0 to leave it out.

Does EditorConfig reformat existing files?

No. It changes how editors write new edits and how some save actions behave. Run your formatter once to bring existing files in line.

About OneClick Pro

OneClick Pro is a free collection of more than 150 web tools for everyday work: converting images and units, formatting and validating code, checking domains and SEO, and working with text, dates and numbers. Every tool runs without registration or subscription, and what you enter is only used to calculate your result and is never stored. Use it as a quick toolbox for one-off tasks, or bookmark the tools you rely on every day.