Editorconfig File Generator
Create a .editorconfig configuration file based on your project's formatting preferences. Choose a project type, configure indentation, select file formatting options, control whitespace, and add language overrides. The tool generates a ready-to-use .editorconfig file that you can copy or download.
Project
Indentation
File Formatting
Whitespace
Language Overrides
Generated .editorconfig
PreviewEditorConfig Basics
What Is an EditorConfig File?
An EditorConfig file defines consistent coding and formatting settings for files within a project. The configuration is normally stored in a file named: .editorconfig.
It can specify settings such as indentation style, indentation size, line endings, character encoding, and whitespace handling.
An EditorConfig Generator makes it easier to create these settings without manually writing the configuration syntax.
How to Generate an .editorconfig File
Select your Project Type.
Choose whether the configuration applies to the Root of the project.
Select an Indent Style.
Choose an Indent Size.
Set the End of Line format.
Select the desired Charset.
Enable or disable Trim Trailing Whitespace.
Choose whether to Insert Final Newline.
Add Language Overrides when needed.
Review the generated .editorconfig preview.
Click Copy or Download.
Generated .editorconfig Example
Input:
Project Type: Python
Root: true
Indent Style: Spaces
Indent Size: 4
End of Line: LF
Charset: UTF-8
Whitespace Options:
Trim trailing whitespace: Enabled (
true)Insert final newline: Enabled (
true)
Language Overrides: Python ([*.py])
Output:
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.py]
indent_style = space
indent_size = 4