diff --git a/assets/settings/default.json b/assets/settings/default.json index f3f3b9abcf..c501aa6d8e 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.md index e1b9d7dc45..c3363093d8 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`