vscode: wrap commit messages at column 72 by default
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 30 Jul 2018 15:42:54 +0000 (08:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Jul 2018 20:14:39 +0000 (13:14 -0700)
When configuring VS Code as core.editor (via `code --wait`), we really
want to adhere to the Git conventions of wrapping commit messages.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/vscode/init.sh
index ba946922681e62814f30ad814a76acfea978f424..face115e89022c5153728925e00a53368294d573 100755 (executable)
@@ -17,6 +17,10 @@ cat >.vscode/settings.json.new <<\EOF ||
 {
     "C_Cpp.intelliSenseEngine": "Default",
     "C_Cpp.intelliSenseEngineFallback": "Disabled",
+    "[git-commit]": {
+        "editor.wordWrap": "wordWrapColumn",
+        "editor.wordWrapColumn": 72
+    },
     "files.associations": {
         "*.h": "c",
         "*.c": "c"