aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Orleans <louis@orleans.io>2017-10-31 08:13:40 -0700
committerJack Humbert <jack.humb@gmail.com>2017-10-31 11:13:40 -0400
commit6169cd52ba031f56268a32c636e9af35941e27a2 (patch)
tree0dbcd8270ce42a2a1debda7f1607c762e74dc7b7
parent101b998ac2c6403c7917fbb283632879d7906294 (diff)
downloadqmk_firmware-6169cd52ba031f56268a32c636e9af35941e27a2.tar.gz
qmk_firmware-6169cd52ba031f56268a32c636e9af35941e27a2.zip
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.
-rw-r--r--.editorconfig18
-rw-r--r--.vscode/extensions.json6
2 files changed, 24 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000..82837f7f1
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,18 @@
1# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
2# editorconfig.org
3
4root = true
5
6[*]
7indent_style = space
8indent_size = 2
9
10# We recommend you to keep these unchanged
11end_of_line = lf
12charset = utf-8
13trim_trailing_whitespace = true
14insert_final_newline = true
15
16[*.md]
17trim_trailing_whitespace = false
18indent_size = 4
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
new file mode 100644
index 000000000..0543f3de1
--- /dev/null
+++ b/.vscode/extensions.json
@@ -0,0 +1,6 @@
1// Suggested extensions
2{
3 "recommendations": [
4 "EditorConfig.EditorConfig"
5 ]
6}