summaryrefslogtreecommitdiffstats
path: root/.editorconfig
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2020-12-17 17:38:05 (GMT)
committerDaan De Meyer <daan.j.demeyer@gmail.com>2020-12-21 20:13:58 (GMT)
commit8c14c6bd0bd0b47fa1eb16993439404139a7086c (patch)
tree104cfef1a83e269d1c75e4faf5d55fb1212f5f8a /.editorconfig
parent215bd0e72b48b2fb2b8e62a53765a60064d7b4b0 (diff)
downloadCMake-8c14c6bd0bd0b47fa1eb16993439404139a7086c.zip
CMake-8c14c6bd0bd0b47fa1eb16993439404139a7086c.tar.gz
CMake-8c14c6bd0bd0b47fa1eb16993439404139a7086c.tar.bz2
Add .editorconfig file
A .editorconfig file allows many editors (e.g. Visual Studio Code) to autoconfigure themselves based on its contents. This avoids some formatting issues in PRs because editors will do the right thing by default with a .editorconfig file available in the repo.
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..e5e7e30
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,10 @@
+root = true
+
+[*]
+charset = utf-8
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[{CMakeLists.txt,*.cmake,*.rst}]
+indent_size = 2
+indent_style = space