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: use_autoclose (#10514)

Peter Tripp2f00fcbdf626
diff --git a/assets/settings/default.json b/assets/settings/default.json
index c794ba492b7..dcdb2e89d9a 100644
--- a/assets/settings/default.json
+++ b/assets/settings/default.json
@@ -92,8 +92,9 @@
// Whether to use additional LSP queries to format (and amend) the code after
// every "trigger" symbol input, defined by LSP server capabilities.
"use_on_type_format": true,
- // Whether to automatically type closing characters for you. For example,
- // when you type (, Zed will automatically add a closing ) at the correct position.
+ // 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.
"use_autoclose": true,
// Controls how the editor handles the autoclosed characters.
// When set to `false`(default), skipping over and auto-removing of the closing characters
diff --git a/docs/src/configuring_zed.md b/docs/src/configuring_zed.md
index 3872dac0582..8984db86e56 100644
--- a/docs/src/configuring_zed.md
+++ b/docs/src/configuring_zed.md
@@ -483,7 +483,7 @@ To override settings for a language, add an entry for that language server's nam
## Auto close
-- Description: Whether or not to automatically type closing characters for you.
+- Description: Whether to automatically add matching closing characters when typing opening parenthesis, bracket, brace, single or double quote characters.
- Setting: `use_autoclose`
- Default: `true`