Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
docs: Improve documentation of ensure final new line on save (#25960)
Devzeth6327a5d665e9
diff --git a/assets/settings/default.json b/assets/settings/default.jsonindex f3f3b9abcfc..c501aa6d8ea 100644--- a/assets/settings/default.json+++ b/assets/settings/default.json@@ -720,8 +720,8 @@"remove_trailing_whitespace_on_save": true,// Whether to start a new line with a comment when a previous line is a comment as well."extend_comment_on_newline": true,- // Whether or not to ensure there's a single newline at the end of a buffer- // when saving it.+ // Removes any lines containing only whitespace at the end of the file and+ // ensures just one newline at the end."ensure_final_newline_on_save": true,// Whether or not to perform a buffer format before saving//diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.mdindex e1b9d7dc458..c3363093d86 100644--- a/docs/src/configuring-zed.md+++ b/docs/src/configuring-zed.md@@ -917,7 +917,7 @@ Each option controls displaying of a particular toolbar element. If all elements## Ensure Final Newline On Save-- Description: Whether or not to ensure there's a single newline at the end of a buffer when saving it.+- Description: Removes any lines containing only whitespace at the end of the file and ensures just one newline at the end.- Setting: `ensure_final_newline_on_save`- Default: `true`