Skip to content

Add .editorconfig to the repository root #30

@felixx-sp

Description

@felixx-sp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions