From ece1818301f889eb1315283ad2f0f32fde421b0e Mon Sep 17 00:00:00 2001 From: Devzeth <47153906+devzeth@users.noreply.github.com> Date: Fri, 28 Feb 2025 08:45:40 +0100 Subject: [PATCH] docs: Add documentation for use_smartcase_search (#25786) Closes #24795 Added missing documentation for `use_smartcase_search`. Release Notes: - N/A --- assets/settings/default.json | 3 +++ docs/src/configuring-zed.md | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/assets/settings/default.json b/assets/settings/default.json index 72262196dcf0495e913af1fba6635582bf3baf45..cd2bb248582c555df2473fc036ed7a3fb4a7e04c 100644 --- a/assets/settings/default.json +++ b/assets/settings/default.json @@ -379,6 +379,9 @@ // 3. Never populate the search query // "never" "seed_search_query_from_cursor": "always", + // When enabled, automatically adjusts search case sensitivity based on your query. + // If your search query contains any uppercase letters, the search becomes case-sensitive; + // if it contains only lowercase letters, the search becomes case-insensitive. "use_smartcase_search": false, // Inlay hint related settings "inlay_hints": { diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.md index 74ec806d6996bab4aff830f635b7aaa95d8fd9ce..7284fe5d520842155c78726a9038114f6a3f365b 100644 --- a/docs/src/configuring-zed.md +++ b/docs/src/configuring-zed.md @@ -1762,6 +1762,23 @@ Or to set a `socks5` proxy: }, ``` +## Use Smartcase Search + +- Description: When enabled, automatically adjusts search case sensitivity based on your query. If your search query contains any uppercase letters, the search becomes case-sensitive; if it contains only lowercase letters, the search becomes case-insensitive. \ + This applies to both in-file searches and project-wide searches. + + Examples: + + - Searching for "function" would match "function", "Function", "FUNCTION", etc. + - Searching for "Function" would only match "Function", not "function" or "FUNCTION" + +- Setting: `use_smartcase_search` +- Default: `false` + +**Options** + +`boolean` values + ## Show Call Status Icon - Description: Whether or not to show the call status icon in the status bar.