← All text tools

.editorconfig Generator

Create an .editorconfig file with indentation, line endings, character set and whitespace rules for up to three file patterns, or start from an example.

  • Free
  • No sign-up
  • Works on any device

About .editorconfig Generator

Keep indentation and line endings consistent for everyone on a project, whatever editor they use. An .editorconfig file lists sections by file pattern, and each section sets properties such as indent_style, indent_size, end_of_line, charset, trim_trailing_whitespace, insert_final_newline and max_line_length, as defined at editorconfig.org. Fill in up to three sections, for example * for everything, *.md to keep trailing spaces in Markdown, and Makefile for tabs, or load a web, Python or Go example first. The file starts with root = true so editors stop looking in parent folders.

How to use .editorconfig Generator

  1. Load an example or start from the first section, which applies to all files with the * pattern.
  2. Set indentation, line endings, character set and the whitespace rules, and add file patterns in sections two and three.
  3. Copy the result into a file named .editorconfig in the root of your project.

Why use this tool?

Also known as

Frequently asked questions

Why disable trim_trailing_whitespace for Markdown?

Two trailing spaces at the end of a Markdown line create a line break. Trimming them silently changes the formatting, so many projects turn trimming off for *.md files.

Do I need a plugin for it to work?

Some editors, such as JetBrains IDEs and Vim with a plugin, support the file directly or through a package, while others like Visual Studio Code need the EditorConfig extension. Check your editor.

What does indent_size = tab mean?

It tells the editor to use the tab width for the indent size. This tool writes indent_style = tab and, when you choose a width, tab_width, which is the clearer form.

Is .editorconfig Generator free?

Yes. .editorconfig Generator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put .editorconfig Generator on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools