EditorConfig
EditorConfig is a project and file format designed to help maintain consistent coding styles across different editors and IDEs. By placing a small configuration file named .editorconfig in the root of a project, developers can specify formatting and editing preferences that compatible editors apply automatically when files are opened or saved. The initiative behind EditorConfig aims to provide a common baseline for cross-project consistency.
The configuration file uses an INI-like syntax. It consists of sections defined by file glob patterns in
A typical .editorconfig example:
[*]
trim_trailing_whitespace = true
indent_size = 4
EditorConfig relies on editor support to enforce these settings. It is editor-agnostic and not a linter