Skip to content
Toolcroft

Developer Tools

.editorconfig Generator

Generate .editorconfig files for your project. Configure charset, indent style, indent size, line endings, and per-file-type overrides.

Your inputs are saved in this browser only. No data is ever sent to a server, and saved values won't be visible in other browsers or devices.

Global Settings [*]

File-Type Overrides

No overrides. Click "Add Rule" or "Load Presets".

.editorconfig output
# EditorConfig is awesome: https://EditorConfig.org

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 120

What is EditorConfig?

EditorConfig is a file format and editor plugin system that helps maintain consistent coding styles across different editors and IDEs. A .editorconfig file placed in your project root is automatically picked up by supported editors (VS Code, IntelliJ, Vim, Emacs, Sublime Text, and many others) - no plugin needed in most modern editors.

Key properties

PropertyValuesDescription
indent_styletab, spaceUse tabs or spaces
indent_sizeintegerNumber of spaces per indentation level
end_of_linelf, crlf, crLine ending character(s)
charsetutf-8, latin1File character encoding
trim_trailing_whitespacetrue, falseRemove trailing spaces on save
insert_final_newlinetrue, falseEnsure file ends with a newline
max_line_lengthinteger, offSoft line length limit

Glob patterns in .editorconfig

Sections apply to files matching glob patterns. Example: [*.{js,ts}] applies to JavaScript and TypeScript files; [Makefile] applies only to Makefiles (which require tabs).