Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
vscode: use 8-space tabs, no trailing ws, etc for Git's source code
author
Johannes Schindelin
<johannes.schindelin@gmx.de>
Mon, 30 Jul 2018 15:42:55 +0000
(08:42 -0700)
committer
Junio 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
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
f2a3b68
)
diff --git
a/contrib/vscode/init.sh
b/contrib/vscode/init.sh
index face115e89022c5153728925e00a53368294d573..29f2a729d1c0ee50b08e6003b2e270159bb0e95e 100755
(executable)
--- 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"