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
| Property | Values | Description |
|---|---|---|
indent_style | tab, space | Use tabs or spaces |
indent_size | integer | Number of spaces per indentation level |
end_of_line | lf, crlf, cr | Line ending character(s) |
charset | utf-8, latin1 | File character encoding |
trim_trailing_whitespace | true, false | Remove trailing spaces on save |
insert_final_newline | true, false | Ensure file ends with a newline |
max_line_length | integer, off | Soft 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).