Skip to content

Commit 6169cd5

Browse files
dudeofawesomejackhumbert
authored andcommitted
Add EditorConfig file (#1930)
* 🔧 add editorconfig This makes supported editors automatically change their settings to match desired code styles * 🔧 add extension recommendation for VSCode This will cause VS Code to prompt the user to install the EditorConfig extension when they open the project. If this is felt to be too opinionated, I can revert it.
1 parent 101b998 commit 6169cd5

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.editorconfig

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
2+
# editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
10+
# We recommend you to keep these unchanged
11+
end_of_line = lf
12+
charset = utf-8
13+
trim_trailing_whitespace = true
14+
insert_final_newline = true
15+
16+
[*.md]
17+
trim_trailing_whitespace = false
18+
indent_size = 4

.vscode/extensions.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Suggested extensions
2+
{
3+
"recommendations": [
4+
"EditorConfig.EditorConfig"
5+
]
6+
}

0 commit comments

Comments
 (0)