diff --git a/assets/settings/default.json b/assets/settings/default.json index d4a23586d82fac46a2ec78ef5cfeb53de2e589ce..3fb8ea88b3f43fdb341cd68dc02e6b98aeb1bdf0 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 5624147369a19283f03190696f51f1393e410ed8..a5dbd682d2ca4943e6230789acad96c5d7e2a742 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 26447445f99145afc1f9103726e9e99d87e8aca0..6683f42daee9832f493878dc3c8721ff3bc9d268 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 14c2f724f0367c42e8e0346c9251d27b92bf7a0a..4fb65d14118d637d7123998e53da9aa40dc7a84c 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`