Fold all lines containing a specific keyword
Answered
I am looking for a way to fold all lines that contain a specific keyword, i.e. all lines that contain "Debug.Log". This would be helpful for hiding all lines related to debugging, effectively de-cluttering the workspace. The desired functionality would be similar to defining custom code folding regions by using "ctrl + ." But instead of hiding only one line or "region", i would like to hide multiple lines. I am asking if this is possible with the default Rider installation, or with a package. If not, I will migrate this post to the Feature Request section.
Please sign in to leave a comment.
Hello!
Thank you for the request.
I've created a feature request. Please, vote for it and feel free to leave comments.
In case anyone still lands here: LogZen folds Unity
Debug.Log*calls in Rider automatically, and has Collapse/Expand actions under Tools > LogZen. https://plugins.jetbrains.com/plugin/29467-logzen