Skip to content

Commit ba78af7

Browse files
committed
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 <[email protected]>
1 parent 384b088 commit ba78af7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

contrib/vscode/init.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ cat >.vscode/settings.json.new <<\EOF ||
2121
"editor.wordWrap": "wordWrapColumn",
2222
"editor.wordWrapColumn": 72
2323
},
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+
},
2432
"files.associations": {
2533
"*.h": "c",
2634
"*.c": "c"

0 commit comments

Comments
 (0)