EditorConfig Guide

editorconfig.org editorconfig/editorconfig

General Code Style

# SPDX-License-Identifier: 0BSD
# SPDX-FileCopyrightText: none

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
tab_width = 4
trim_trailing_whitespace = true

[*.md]
# Trailing whitespace is significant in Markdown.
trim_trailing_whitespace = false

[{*.toml,*.ini}]
indent_size = 4
indent_style = space

[{*.yml,*.yaml,*.json}]
indent_size = 2
indent_style = space

[{Makefile,*.mk}]
# Make requires tabs to indent recipes.
indent_size = 4
indent_style = tab

Revision #68
Created 2025-11-20 20:14:48 UTC by Tomáš Havlas
Updated 2026-09-19 21:09:08 UTC by Tomáš Havlas