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
49.01k stars 2.95k forks source link

[Feature request] Fainted, colorized commented-out code #16291

Open krstp opened 2 months ago

krstp commented 2 months ago

Check for existing issues

Describe the feature

Currently, when the code is commented-out, the portion of the code gets grayed out - as in any browser.

What I would like to see is a feature that instead of graying out the code, it would remain the code colorized, but will turn the colorization slightly fainted with a preceding row of # that would still be grayed out.

See below mock-up screenshot that visualizes the solution.

Colorization for a complex, large portions of code that is commented out, still allows for ease of readability.

I would like to have a settings feature and menu option (CMD+SHIFT+P), that would allow me to turn on/off comments colorization. Thank you.

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

Commented_code_proposal

equinusocio commented 2 months ago

This world crash with the "unused code" feature style that is missing