Skip to content

Commit e080381

Browse files
feat: add editorconfig
The following patch adds the file `.editorconfig`. This is the configuration file of Editorconfig. A general pattern accross IDE's to define basic project settings like indentation style or indentation size. Furthermore, the `.gitignore` has been adapted to exclude everything below `.vscode` excerpt `extensions.json`. The file contains a list of plugin recommendations, including the new Editorconfig plugin. Signed-off-by: Markus Pesch <markus.pesch@cryptic.systems>
1 parent 2191712 commit e080381

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = false
13+
14+
[Makefile]
15+
indent_style = tab

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# IDE resources
2-
.vscode
2+
.vscode/*
3+
!.vscode/extensions.json
4+
35
.idea
46
.devcontainer/
57

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"editorconfig.editorconfig"
4+
]
5+
}

0 commit comments

Comments
 (0)