zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.46k stars 3.12k forks source link

Visual line over functions like Emacs' "Decorate Tags" option in EDE mode #20986

Open mrfirmware opened 1 day ago

mrfirmware commented 1 day ago

Check for existing issues

Describe the feature

For C and C++ code, Emacs has an EDE mode that has an option to Decorate Tags. With that option enabled each function, struct, class, enum etc in the file is shown with a solid line just above it. I look at a lot of code where one function/object is smashed into the next. It would be great if Zed could support a feature like this. It really helps your eyes when reading poorly formatted code.

Environment

Zed: v0.162.3 (Zed) OS: macOS 14.6.1 Memory: 32 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help present your vision of the feature

------------       <- Decorated Tag
struct Foo {
...
}
-------------------------        <- Decorated Tag
void some_func(int foo) {
}