Folding all except comments


#1

Hello guys,

is it possible to fold every foldable element except comments?
I know i can use Ctrl + Alt + Shift + [ to fold everything but i wish to do it without comments.

Let me know how can i do it.
Thanks


#2

You may want to look at this topic for ideas on how it could be achieved: