Contributors working on different OSes or editors sometimes submit patches with inconsistent indentation or line endings. Adding an .editorconfig file to the repository root lets any compliant editor (VS Code, CLion, Notepad++…) apply the project's formatting automatically.
Suggested content:
root = true
[*]
charset = utf-8
end_of_line = crlf
insert_final_newline = true
[*.{c,h,cu,py}]
indent_style = space
indent_size = 4
[*.bat]
indent_style = space
indent_size = 2
Good first issue — no code changes, just one new file.
Contributors working on different OSes or editors sometimes submit patches with inconsistent indentation or line endings. Adding an
.editorconfigfile to the repository root lets any compliant editor (VS Code, CLion, Notepad++…) apply the project's formatting automatically.Suggested content:
Good first issue — no code changes, just one new file.