# agent_settings: Add a way to set the layout settings en-masse \(\#52777\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 18ebc35c66666d13aca636adf92e9eb90bcf0d43

Requested commit: 18ebc35c66666d13aca636adf92e9eb90bcf0d43

Commit: 18ebc35c66666d13aca636adf92e9eb90bcf0d43

Tree: 34fcff56eabd864574f402c93cef98d7201760dd

Author: Mikayla Maki

Committer: GitHub

## Message

```
agent_settings: Add a way to set the layout settings en-masse (#52777)

Use `AgentSettings::get_layout(cx)` to retrieve the current, exact value of the user's layout settings, and `AgentSettings::set_layout(WindowLayout::agent())` or `AgentSettings::set_layout(cached_user_settings)` to write to them.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #ISSUE

Release Notes:

- N/A
```

## Parents

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

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