Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

docs: Add documentation for use_smartcase_search (#25786)

Devzethece1818301f8
diff --git a/assets/settings/default.json b/assets/settings/default.json
index 72262196dcf..cd2bb248582 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 74ec806d699..7284fe5d520 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.