Skip to content

Commit 963e19e

Browse files
committed
Editorconfig file.
This change doesn't change the formatting of existing code, but makes sure all IDEs with support for this (VIM, Jetbrains IDEs, VS Code) use the same spacing style that `rustfmt` also uses by default. This makes a `cargo fmt` needless in most cases.
1 parent 97697dc commit 963e19e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Unix-style newlines with a newline ending every file
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
indent_style = space
10+
indent_size = 4
11+
trim_trailing_whitespace = true

Changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# TODO 0.12.2 / 0.13
22
- internal improvements
3-
- code formatting/style
3+
- code formatting/style
44
- sensible style checks as optional CI job
5+
- `.editorconfig` file
56

67
# 0.12.1
78
- `TagType`-enum introduced in `v0.11` is now actually public

0 commit comments

Comments
 (0)