vscode: use 8-space tabs, no trailing ws, etc for Git's source code
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>
Johannes Schindelin committed
Jul 30, 2018 at 08:42 UTC
5482f418f5185cd2c2c94c1aec58c7c035780b8a
1 file changed
+8
contrib/vscode/init.sh
+8
@@ -21,6 +21,14 @@ cat >.vscode/settings.json.new <<\EOF ||
21
"editor.wordWrap": "wordWrapColumn",
22
"editor.wordWrapColumn": 72
23
},
24
+ "[c]": {
25
+ "editor.detectIndentation": false,
26
+ "editor.insertSpaces": false,
27
+ "editor.tabSize": 8,
28
+ "editor.wordWrap": "wordWrapColumn",
29
+ "editor.wordWrapColumn": 80,
30
+ "files.trimTrailingWhitespace": true
31
+ },
32
"files.associations": {
33
"*.h": "c",
34
"*.c": "c"