Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Document how preferred_line_length affects Rewrap (#66534)
chrisknsmn4814ef66aa2b
diff --git a/assets/settings/default.json b/assets/settings/default.jsonindex b57ed30f8ec..15686d81d15 100644--- a/assets/settings/default.json+++ b/assets/settings/default.json@@ -1692,7 +1692,8 @@// "extra_two" - same + 2 indent levels"soft_wrap_indent": "same",// The column at which to soft-wrap lines, for buffers where soft-wrap- // is enabled.+ // is enabled. The `editor::Rewrap` action also wraps to this column by+ // default, whether or not soft-wrap is enabled."preferred_line_length": 80,// Whether to indent lines using tab characters, as opposed to multiple// spaces.diff --git a/crates/settings_content/src/language.rs b/crates/settings_content/src/language.rsindex e7a504f7f9b..6166c518551 100644--- a/crates/settings_content/src/language.rs+++ b/crates/settings_content/src/language.rs@@ -586,7 +586,8 @@ pub struct LanguageSettingsContent {/// Default: samepub soft_wrap_indent: Option<SoftWrapIndent>,/// The column at which to soft-wrap lines, for buffers where soft-wrap- /// is enabled.+ /// is enabled. The `editor::Rewrap` action also wraps to this column by+ /// default, whether or not soft-wrap is enabled.////// Default: 80pub preferred_line_length: Option<u32>,diff --git a/docs/src/reference/all-settings.md b/docs/src/reference/all-settings.mdindex ca87e482d87..a4de136a36c 100644--- a/docs/src/reference/all-settings.md+++ b/docs/src/reference/all-settings.md@@ -4716,7 +4716,7 @@ These settings belong inside the `file_finder` object.## Preferred Line Length-- Description: The column at which to soft-wrap lines, for buffers where soft-wrap is enabled.+- Description: The column at which to soft-wrap lines, for buffers where soft-wrap is enabled. The {#action editor::Rewrap} action also wraps to this column by default, whether or not soft-wrap is enabled.- Setting: `preferred_line_length`- Default: `80`