As I skim through my code, I often find myself wanting to hide all the type and interface declarations and definitions. It can be overwhelming and distracting at times.
const sometext: string = "blahblah"
string refers to what I mean by definitions, although I'm not sure if that's the correct term.
I recognize the importance of having this information easily accessible, but there are moments when I just want to focus on the pure JavaScript without the clutter.
It would be really helpful to have a shortcut key to toggle the visibility of all TypeScript-related content in my code, allowing me to concentrate on the JS part when necessary.
I came across this GitHub post proposing the same idea, which unfortunately was rejected.
All I wish for is a quick way to collapse or expand all types/interfaces, and perhaps even conceal (or change the color of) the definitions. This feature could prove beneficial when the code is still fresh in your mind and variables are named effectively. The ability to switch between typing and focusing solely on the JS logic would be a valuable addition.
Does anyone know of a plugin or feature that offers this functionality?