Include .editorconfig file

This is an attempt to get more cross-editor compatibility.
This commit is contained in:
Sybren A. Stüvel 2022-05-02 18:25:40 +02:00
parent 8d69bfe069
commit d6c257d396
2 changed files with 40 additions and 23 deletions

19
.editorconfig Normal file
View File

@ -0,0 +1,19 @@
# EditorConfig is awesome: https://EditorConfig.org
root=true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
[*.go]
indent_style = tab
[*.py]
indent_size = 4
[Makefile]
indent_style = tab

View File

@ -12,8 +12,6 @@
"uncoveredGutterStyle": "blockred" "uncoveredGutterStyle": "blockred"
}, },
"[yaml]": { "[yaml]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.autoIndent": "keep", "editor.autoIndent": "keep",
"editor.defaultFormatter": "esbenp.prettier-vscode", "editor.defaultFormatter": "esbenp.prettier-vscode",
}, },