# settings ui: Improve setting proc macro and add scroll to UI \(\#37581\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0cb8a8983cef1f3e015fa0f2fc37e8325f3d201d

Requested commit: 0cb8a8983cef1f3e015fa0f2fc37e8325f3d201d

Commit: 0cb8a8983cef1f3e015fa0f2fc37e8325f3d201d

Tree: 946f698a5e51c55a268348de7d8eff40718e9b21

Author: Anthony Eid

Committer: GitHub

## Message

```
settings ui: Improve setting proc macro and add scroll to UI (#37581)

This PR improves the settings_ui proc macro by taking into account more
serde attributes
1. rename_all
2. rename
3. flatten

We also pass field documentation to the UI layer now too. This allows ui
elements to have more information like the switch field description.

We got the scrollbar working and started getting language settings to
show up.

Release Notes:

- N/A

---------

Co-authored-by: Ben Kunkle <ben@zed.dev>
```

## Parents

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

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