FileSamplesHub

Sample EDITORCONFIG File Download

Sample editorconfig file

An .editorconfig file defines coding-style rules — indent style and size, line endings, charset, trailing whitespace, final newline — that editors and IDEs apply automatically. A file at the project root with root = true stops the search walking up further.

Most editors support it natively or via a plugin, so a single file keeps formatting consistent across a team regardless of which editor each person uses, with per-language overrides written as [*.py]-style section headers.

Use the samples below to test an EditorConfig parser, confirm your editor picks up the rules, or check that glob patterns and unset values are handled correctly.

Related file formats