From 9984614f3d55f623e5422772be0a0b749515fa9e Mon Sep 17 00:00:00 2001 From: David <124755024+44David@users.noreply.github.com> Date: Fri, 17 Oct 2025 16:45:44 -0600 Subject: [PATCH] settings_ui: Fix misplaced comma in autoclose setting description (#40519) Release Notes: - Fixed misplaced comma in the autoclose description from: "when you type (, Zed will ...)" to "when you type, (Zed will ...)" --------- Co-authored-by: Danilo Leal --- assets/settings/default.json | 4 ++-- crates/settings/src/settings_content/language.rs | 4 ++-- crates/settings_ui/src/page_data.rs | 4 ++-- docs/src/configuring-zed.md | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/assets/settings/default.json b/assets/settings/default.json index d4a23586d8..3fb8ea88b3 100644 --- a/assets/settings/default.json +++ b/assets/settings/default.json @@ -311,11 +311,11 @@ "use_on_type_format": true, // Whether to automatically add matching closing characters when typing // opening parenthesis, bracket, brace, single or double quote characters. - // For example, when you type (, Zed will add a closing ) at the correct position. + // For example, when you type '(', Zed will add a closing ) at the correct position. "use_autoclose": true, // Whether to automatically surround selected text when typing opening parenthesis, // bracket, brace, single or double quote characters. - // For example, when you select text and type (, Zed will surround the text with (). + // For example, when you select text and type '(', Zed will surround the text with (). "use_auto_surround": true, // Whether indentation should be adjusted based on the context whilst typing. "auto_indent": true, diff --git a/crates/settings/src/settings_content/language.rs b/crates/settings/src/settings_content/language.rs index 5624147369..a5dbd682d2 100644 --- a/crates/settings/src/settings_content/language.rs +++ b/crates/settings/src/settings_content/language.rs @@ -296,12 +296,12 @@ pub struct LanguageSettingsContent { /// Inlay hint related settings. pub inlay_hints: Option, /// Whether to automatically type closing characters for you. For example, - /// when you type (, Zed will automatically add a closing ) at the correct position. + /// when you type '(', Zed will automatically add a closing ')' at the correct position. /// /// Default: true pub use_autoclose: Option, /// Whether to automatically surround text with characters for you. For example, - /// when you select text and type (, Zed will automatically surround text with (). + /// when you select text and type '(', Zed will automatically surround text with (). /// /// Default: true pub use_auto_surround: Option, diff --git a/crates/settings_ui/src/page_data.rs b/crates/settings_ui/src/page_data.rs index 26447445f9..6683f42dae 100644 --- a/crates/settings_ui/src/page_data.rs +++ b/crates/settings_ui/src/page_data.rs @@ -5430,7 +5430,7 @@ fn language_settings_data() -> Vec { SettingsPageItem::SectionHeader("Autoclose"), SettingsPageItem::SettingItem(SettingItem { title: "Use Autoclose", - description: "Whether to automatically type closing characters for you. For example, when you type (, Zed will automatically add a closing ) at the correct position", + description: "Whether to automatically type closing characters for you. For example, when you type '(', Zed will automatically add a closing ')' at the correct position", field: Box::new(SettingField { pick: |settings_content| { language_settings_field(settings_content, |language| { @@ -5448,7 +5448,7 @@ fn language_settings_data() -> Vec { }), SettingsPageItem::SettingItem(SettingItem { title: "Use Auto Surround", - description: "Whether to automatically surround text with characters for you. For example, when you select text and type (, Zed will automatically surround text with ()", + description: "Whether to automatically surround text with characters for you. For example, when you select text and type '(', Zed will automatically surround text with ()", field: Box::new(SettingField { pick: |settings_content| { language_settings_field(settings_content, |language| { diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.md index 14c2f724f0..4fb65d1411 100644 --- a/docs/src/configuring-zed.md +++ b/docs/src/configuring-zed.md @@ -3326,7 +3326,7 @@ Positive integer values ## Use Auto Surround -- Description: Whether to automatically surround selected text when typing opening parenthesis, bracket, brace, single or double quote characters. For example, when you select text and type (, Zed will surround the text with (). +- Description: Whether to automatically surround selected text when typing opening parenthesis, bracket, brace, single or double quote characters. For example, when you select text and type '(', Zed will surround the text with (). - Setting: `use_auto_surround` - Default: `true`