Skip to content

Commit

Permalink
chore: add .editorconfig (#855)
Browse files Browse the repository at this point in the history
This adds a simple `.editorconfig` file to the root of the repository so
that different editors/IDEs may pick up the settings. This makes it
easier to have consistent formatting while editing, not just after
running `cargo fmt`. See [here](https://editorconfig.org) for more details.

Co-authored-by: AlphaKeks <alphakeks@dawn.sh>
  • Loading branch information
2 people authored and paulotten committed May 4, 2023
1 parent 255221e commit 16d4a82
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

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

# Indentation settings matching the default rustfmt config
[*.rs]
charset = utf-8
indent_style = space
indent_size = 4

0 comments on commit 16d4a82

Please sign in to comment.