Folding lines in Sublime

In one of my projects I am adding a good amount of logging to my code, with the result of getting a lot of distracting lines that end up hiding what is really going on.

I was searching for a plugin that can fold lines containing a text fragment in my editors, and found Filter Lines for Sublime.

After installing the plugin, I went to Edit | Code Folding | Fold with Regex  and entered ^((?!logger.).)*$  as my expression.

As a result, I went from

Sublime not folded

to

Sublime logger filtered

Facebooktwittergoogle_plusredditpinterestlinkedinmailby feather

Leave a Reply

Your email address will not be published. Required fields are marked *