root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true

[*.{c,cpp,hpp,h,py,rb,yml}]
trim_trailing_whitespace = true

[*.{toml,rs}]
trim_trailing_whitespace = true
indent_style = space
indent_size = 4

[*.{c,cpp,hpp,h,py,md}]
tab_width = 8
indent_style = space
indent_size = 4

# 2 space indentation for ruby, yaml, json
[*.{rb,yml,yaml, json}]
indent_style = space
indent_size = 2

[**.{bat,txt,sln,dbproj,fsproj,vbproj,csproj}]
end_of_line = crlf

# Tab indentation (no size specified)
[Makefile]
indent_style = tab
