# Add a live Rust style editor to inspector to edit a sequence of no-argument style modifiers \(\#31443\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 649072d14092bf0a54109ab536d5c8a71a22f40c

Requested commit: 649072d14092bf0a54109ab536d5c8a71a22f40c

Commit: 649072d14092bf0a54109ab536d5c8a71a22f40c

Tree: 5057bc9714a237c6bfed209ccd35a8c0d485b52c

Author: Michael Sloan

Committer: GitHub

## Message

```
Add a live Rust style editor to inspector to edit a sequence of no-argument style modifiers (#31443)

Editing JSON styles is not very helpful for bringing style changes back
to the actual code. This PR adds a buffer that pretends to be Rust,
applying any style attribute identifiers it finds. Also supports
completions with display of documentation. The effect of the currently
selected completion is previewed. Warning diagnostics appear on any
unrecognized identifier.


https://github.com/user-attachments/assets/af39ff0a-26a5-4835-a052-d8f642b2080c

Adds a `#[derive_inspector_reflection]` macro which allows these methods
to be enumerated and called by their name. The macro code changes were
95% generated by Zed Agent + Opus 4.

Release Notes:

* Added an element inspector for development. On debug builds,
`dev::ToggleInspector` will open a pane allowing inspecting of element
info and modifying styles.
```

## Parents

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

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