A code block folding feature

I love Webstorm much. I just saw a nice feature in the menu "Code -> Folding -> Fold Code Block". Though I don't know what is the purpose of it, i.e. when and how to use this feature. Whenever I have some blocks of code "Fold Code Block" always is grayed out. I clicked here and there but this one always disabled. I see it is redundant feature, or am I missing something? Otherwise could you be pleased provide some example when it is useful? Thanks. Webstorm ver. 2022.1.3

3 comments
Comment actions Permalink

Looks as if this feature is not implemented for Typescript/JavaScript; please vote for https://youtrack.jetbrains.com/issue/WEB-56478 to be notified on any progress with it

0
Comment actions Permalink

Thanks Dear Elena,

for the response!

0
Comment actions Permalink

Thank you 🙏 for the explanation.

Me too saw this feature always disabled. 🙁

Is there a gif for a visualization of work this feature?

0

Please sign in to leave a comment.