# Allow to handle autoclosed characters differently \(\#8666\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7855b9e9a864935258cc20a18f317d22c3478fd2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 7855b9e9a864935258cc20a18f317d22c3478fd2

Requested commit: 7855b9e9a864935258cc20a18f317d22c3478fd2

Commit: 7855b9e9a864935258cc20a18f317d22c3478fd2

Tree: 0476f58ef86690302f6224392902ae754a508c65

Author: Tim Masliuchenko

Committer: GitHub

## Message

```
Allow to handle autoclosed characters differently (#8666)

Adds the `always_treat_brackets_as_autoclosed` setting to control how
the autoclosed characters are handled.

The setting is off by default, meaning the behaviour stays the same
(following how VSCode handles autoclosed characters).
When set to `true`, the autoclosed characters are always skipped over
and auto-removed no matter how they were inserted (following how Sublime
Text/Xcode handle this).


https://github.com/zed-industries/zed/assets/471335/304cd04a-59fe-450f-9c65-cc31b781b0db


https://github.com/zed-industries/zed/assets/471335/0f5b09c2-260f-48d4-8528-23f122dee45f

Release Notes:

- Added the setting `always_treat_brackets_as_autoclosed` (default:
`false`) to always treat brackets as "auto-closed" brackets, i.e.
deleting the pair when deleting start/end, etc.
([#7146](https://github.com/zed-industries/zed/issues/7146)).

---------

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
```

## Parents

- [d5e0817fbc342f1079866a2433782658c6226619](https://git.cafe/gitcafe/zed/commit/d5e0817fbc342f1079866a2433782658c6226619?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7855b9e9a864935258cc20a18f317d22c3478fd2?format=markdown)
