How to remove unnecessary blank line on code formatting in IntelliJ?

前端 未结 5 979
情深已故
情深已故 2020-12-12 18:56

Is it possible to remove empty/blank lines using code formatting in Intellij IDEA?

5条回答
  •  不思量自难忘°
    2020-12-12 19:23

    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

提交回复
热议问题