2023-12-05 14:22:58 -05:00
|
|
|
# EditorConfig is awesome: http://EditorConfig.org
|
|
|
|
|
|
|
|
# top-most EditorConfig file
|
|
|
|
root = true
|
|
|
|
|
|
|
|
# Windows-style newlines with a newline ending every file
|
|
|
|
[*]
|
|
|
|
end_of_line = crlf
|
|
|
|
insert_final_newline = true
|
|
|
|
|
|
|
|
# 4 space indentation
|
|
|
|
[*.{c,h,def}]
|
|
|
|
indent_style = space
|
|
|
|
indent_size = 4
|
|
|
|
|
|
|
|
# Trim trailing whitespaces
|
|
|
|
[*.{c,h,def,txt}]
|
|
|
|
trim_trailing_whitespace = true
|
|
|
|
|
|
|
|
# UTF-8 with BOM
|
|
|
|
[*.{c,h,def,txt}]
|
|
|
|
charset=utf-8-bom
|
2024-03-06 15:11:36 -05:00
|
|
|
|
|
|
|
# C/C++ code formatting
|
|
|
|
[*.{c,h}]
|
|
|
|
cpp_space_pointer_reference_alignment = right
|