remove all blank lines EXCEPT one line above // comment

How can I configure R# 4.5 so that it removes all blank lines from my code, except one line above a // comment? Additionally if there is no blank line above a // comment I want R# to add one.

Please sign in to leave a comment.