From 8f6c5861a107a01234e6a0500c9bca4b03df926e Mon Sep 17 00:00:00 2001 From: Christian Lohmaier Date: Wed, 22 Dec 2021 17:53:57 +0100 Subject: [PATCH] vscode: set editor to not show newline at end-of-file as empty line and also tell it to always add newline at EOF to be consistent with traditional editors like vim and others Change-Id: Iba7e9a3778229c72c06981bd95460980f8c4e9d6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127333 Tested-by: Jenkins Reviewed-by: Christian Lohmaier --- .vscode/vs-code-template.code-workspace.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vscode/vs-code-template.code-workspace.in b/.vscode/vs-code-template.code-workspace.in index 80216adf9555..771080251a95 100644 --- a/.vscode/vs-code-template.code-workspace.in +++ b/.vscode/vs-code-template.code-workspace.in @@ -62,6 +62,9 @@ "editor.rulers": [ 100 ], + // files in the repo should in general have a newline at end-of-file + "files.insertFinalNewline": true, + "editor.renderFinalNewline": false, "gitlens.autolinks": [ { "prefix": "tdf#",