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 --- editor/editor_settings.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/editor_settings.cpp') diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index 752b060513..dbc697e2b6 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -647,6 +647,7 @@ void EditorSettings::_load_defaults(Ref p_extra_config) { // Behavior: Files _initial_set("text_editor/behavior/files/trim_trailing_whitespace_on_save", false); + _initial_set("text_editor/behavior/files/trim_final_newlines_on_save", true); _initial_set("text_editor/behavior/files/autosave_interval_secs", 0); _initial_set("text_editor/behavior/files/restore_scripts_on_load", true); _initial_set("text_editor/behavior/files/convert_indent_on_save", true); -- cgit v1.2.3