vscode: use 8-space tabs, no trailing ws, etc for Git's source code
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 30 Jul 2018 15:42:55 +0000 (08:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Jul 2018 20:14:39 +0000 (13:14 -0700)
This adds a couple settings for the .c/.h files so that it is easier to
conform to Git's conventions while editing the source code.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/vscode/init.sh
index face115e89022c5153728925e00a53368294d573..29f2a729d1c0ee50b08e6003b2e270159bb0e95e 100755 (executable)
@@ -21,6 +21,14 @@ cat >.vscode/settings.json.new <<\EOF ||
         "editor.wordWrap": "wordWrapColumn",
         "editor.wordWrapColumn": 72
     },
+    "[c]": {
+        "editor.detectIndentation": false,
+        "editor.insertSpaces": false,
+        "editor.tabSize": 8,
+        "editor.wordWrap": "wordWrapColumn",
+        "editor.wordWrapColumn": 80,
+        "files.trimTrailingWhitespace": true
+    },
     "files.associations": {
         "*.h": "c",
         "*.c": "c"