From 2f00fcbdf626b1e49e7c07c7318be75cdd61ef41 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Tue, 16 Apr 2024 12:17:04 -0400 Subject: [PATCH] docs: use_autoclose (#10514) Add some keywords (bracket, quote, etc)to the comments describing `use_autoclose` preference in the settings json. This setting took me a while to find -- so now it'll be more easily searchable for others. Release Notes: - N/A --- assets/settings/default.json | 5 +++-- docs/src/configuring_zed.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/settings/default.json b/assets/settings/default.json index c794ba492b721aa6616d75b1fbd4704ebc959882..dcdb2e89d9acf8c4c126c2749cf9eb3275a36066 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 3872dac0582a4da0a4fd097bcd95e3dbe5666b4a..8984db86e56484d6c1ad98e74e0bd18e3d15aa56 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`