You can find the command block by regexp searching for: (^[[^\n]&&\s]*#.*$\n)+ -- currently though, “fold selection” is not a recordable action (for a macro), but I can add it to the list for next build.
That would be great. But is it possible to create a macro that folds all comments? I mean, is there flow control for macros along the lines of "while find comment regexp, fold selection"?