summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2018-07-30 08:42:55 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-07-30 13:14:39 -0700
commit5482f418f5185cd2c2c94c1aec58c7c035780b8a (patch)
tree2bdc469dea7e415e7e1047ef3b1ab93fa923e44b /contrib
parentvscode: wrap commit messages at column 72 by default (diff)
downloadtgif-5482f418f5185cd2c2c94c1aec58c7c035780b8a.tar.xz
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>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/vscode/init.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/vscode/init.sh b/contrib/vscode/init.sh
index face115e89..29f2a729d1 100755
--- a/contrib/vscode/init.sh
+++ b/contrib/vscode/init.sh
@@ -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"