# EditorConfig Guide

[![editorconfig.org](https://img.shields.io/badge/editorconfig.org-0288D1?style=flat)](https://editorconfig.org/)
[![editorconfig/editorconfig](https://img.shields.io/badge/editorconfig/editorconfig-555555?style=flat&logo=github&logoColor=white)](https://github.com/editorconfig/editorconfig)

General Code Style
-------------------

```ini filename=".editorconfig"
# 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
```