Remove blank line in Eclipse

前端 未结 7 1527
梦毁少年i
梦毁少年i 2021-01-30 01:45

How can I remove lines that only contain spaces when using Eclipse Find/Replace prompt. I checked the \"Regular Expression\" check box, and tried the following, neither of whic

相关标签:
7条回答
  • 2021-01-30 02:34

    sry this might be an different answer but you can set the number of blank lines you wish to have after fields, methods and blocks in the formatting dialog of the eclipse preferences. then you can hit ctrl-shift-f to automatically format your code depending on your custom definitions.

    have fun!

    0 讨论(0)
提交回复
热议问题