summaryrefslogtreecommitdiff
path: root/contrib/vscode
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2018-07-30 15:42:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-30 20:14:39 (GMT)
commit5482f418f5185cd2c2c94c1aec58c7c035780b8a (patch)
tree2bdc469dea7e415e7e1047ef3b1ab93fa923e44b /contrib/vscode
parentf2a3b6839477fe623edb0d2113a58acac8821596 (diff)
downloadgit-5482f418f5185cd2c2c94c1aec58c7c035780b8a.zip
git-5482f418f5185cd2c2c94c1aec58c7c035780b8a.tar.gz
git-5482f418f5185cd2c2c94c1aec58c7c035780b8a.tar.bz2
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/vscode')
-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 face115..29f2a72 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"