diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-30 11:47:28 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-30 11:47:28 +0200 |
commit | 838eb5a0fdcfa0e0f368a6d33a0f712db90c9719 (patch) | |
tree | 565c508efbc85bac44c367ba697277882b0c1df6 /doc/classes | |
parent | ffad49f1693cc292df88955573e8fe197a41bcd0 (diff) | |
parent | b4c1634b52f619ca8987b67ecee2640310781aa7 (diff) | |
download | redot-engine-838eb5a0fdcfa0e0f368a6d33a0f712db90c9719.tar.gz |
Merge pull request #87099 from bitwise-aiden/ba-add-trim-newlines
Implement `trim_final_newlines` setting and functionality
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/EditorSettings.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/EditorSettings.xml b/doc/classes/EditorSettings.xml index 7ee239415f..e0a14e990b 100644 --- a/doc/classes/EditorSettings.xml +++ b/doc/classes/EditorSettings.xml @@ -1028,6 +1028,9 @@ <member name="text_editor/behavior/files/restore_scripts_on_load" type="bool" setter="" getter=""> If [code]true[/code], reopens scripts that were opened in the last session when the editor is reopened on a given project. </member> + <member name="text_editor/behavior/files/trim_final_newlines_on_save" type="bool" setter="" getter=""> + 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. + </member> <member name="text_editor/behavior/files/trim_trailing_whitespace_on_save" type="bool" setter="" getter=""> 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. </member> |