Is it possible to remove empty/blank lines using code formatting in Intellij IDEA?
I use regular expression to remove extra blank line from code. Here are the instructions
^(?:[\t ]*(?:\r?\n|\r)){2,}. This will search for two ore more blank lines.\n. This will replace with one blank line.This works on all JetBrains IDEs. Use the screenshot as referece.