# Indent guides \(\#11503\) · gitcafe/zed

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

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

Visibility: public

Requested revision: feea607bac1ae99c26bd10e4bf4cd28448e3ecfe

Requested commit: feea607bac1ae99c26bd10e4bf4cd28448e3ecfe

Commit: feea607bac1ae99c26bd10e4bf4cd28448e3ecfe

Tree: 79a9f3cfda887bbcefae93465dd3f45ef27debce

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
Indent guides (#11503)

Builds on top of existing work from #2249, but here's a showcase:


https://github.com/zed-industries/zed/assets/53836821/4b346965-6654-496c-b379-75425d9b493f

TODO:
- [x] handle line wrapping
- [x] implement handling in multibuffer (crashes currently)
- [x] add configuration option
- [x] new theme properties? What colors to use?
- [x] Possibly support indents with different colors or background
colors
- [x] investigate edge cases (e.g. indent guides and folds continue on
empty lines even if the next indent is different)
- [x] add more tests (also test `find_active_indent_index`)
- [x] docs (will do in a follow up PR)
- [x] benchmark performance impact

Release Notes:

- Added indent guides
([#5373](https://github.com/zed-industries/zed/issues/5373))

---------

Co-authored-by: Nate Butler <1714999+iamnbutler@users.noreply.github.com>
Co-authored-by: Remco <djsmits12@gmail.com>
```

## Parents

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

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