From b4c1634b52f619ca8987b67ecee2640310781aa7 Mon Sep 17 00:00:00 2001 From: Aiden Storey Date: Fri, 12 Jan 2024 00:32:13 -0500 Subject: Implement trim_final_newlines functionality --- doc/classes/EditorSettings.xml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') diff --git a/doc/classes/EditorSettings.xml b/doc/classes/EditorSettings.xml index 93a7b09fce..c161a66ad8 100644 --- a/doc/classes/EditorSettings.xml +++ b/doc/classes/EditorSettings.xml @@ -1012,6 +1012,9 @@ If [code]true[/code], reopens scripts that were opened in the last session when the editor is reopened on a given project. + + If [code]true[/code], trims all empty newlines after the final newline when saving a script. Final newlines refer to the empty newlines found at the end of files. Since these serve no practical purpose, they can and should be removed to make version control diffs less noisy. + If [code]true[/code], trims trailing whitespace when saving a script. Trailing whitespace refers to tab and space characters placed at the end of lines. Since these serve no practical purpose, they can and should be removed to make version control diffs less noisy. -- cgit v1.2.3