Code Reformat - remove blank lines?

Just wondering... is there an easy way to remove blank lines when using the code->reformat code tool?

4 comments

I simple use after reformat replace dialog in regexp mode with \n\n => \n.

0

Ah, that is one way to do it... I am terrible at regex, so thanks for the suggestion.  To take it a step further, is there a regex that will remove lines that only contain whitespace?

0

Formatter & corresponding options is under development. Should be ready in next 1-2 EAPs

0

Please sign in to leave a comment.