diff options
author | Aiden Storey <git@storey.dev> | 2024-01-12 00:32:13 -0500 |
---|---|---|
committer | Aiden Storey <git@storey.dev> | 2024-05-02 22:57:34 -0400 |
commit | b4c1634b52f619ca8987b67ecee2640310781aa7 (patch) | |
tree | 592faafc74fefb2dfb3e4a5ff4d8e63fb2e52513 /editor/editor_settings.cpp | |
parent | d4f726f3ef21cef3e7936b2c9770cdac6478b8ee (diff) | |
download | redot-engine-b4c1634b52f619ca8987b67ecee2640310781aa7.tar.gz |
Implement trim_final_newlines functionality
Diffstat (limited to 'editor/editor_settings.cpp')
-rw-r--r-- | editor/editor_settings.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<ConfigFile> 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); |