Is it possible to remove empty/blank lines using code formatting in Intellij IDEA?
You can find and replace with regex option also ^(?:[\t ]*(?:\r?\n|\r))+. It searches all empty lines in file. You need to just replace it with empty
^(?:[\t ]*(?:\r?\n|\r))+