That’s a feature request (do we have a category/tag for that?)
It would be amazing if commenting the selection generated foldable blocks with:
rather than just comment out with
That way we comment out, fold away the stuff, write some more code, etc.
You can do that with clippings!
I have this in a clipping named “Block Comment” and it works exactly as you describe. (I don’t remember if this is one I added or provided, so you may actually already have it in your clippings)
It’s the one called
The reason commenting is not done this way by default is that there are some quirks to how AppleScript interprets other block characters within such block comments.
And for extra-goodness, you can hotkey it in the key bindings.